From 992355f38218e0812a4a1beb9e44d6ae320c3a4e Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Mon, 14 Dec 2020 15:25:57 +0300 Subject: [PATCH] Added targets that allow for the runtime dependencies of ProjectReference'd analyzers to be passed to the compiler --- Directory.Build.targets | 40 +++++++++++++++++++ .../ComputeSharp.Core.csproj | 14 +++---- 2 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 Directory.Build.targets diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 00000000..ae395b8f --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index c820d0b9..deb643c7 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -10,19 +10,19 @@ - false - true + packages the dependencies directly alongside the main binary), and public dependencies when packing the main project. + Notably, when building the source generator for sample projects via ProjectReferences, we do not want the packages to be private.--> + false + true - false + false - - + +