Make all sample and test project non-packable

It's simpler and more reliable to do this with Directory.Build.props files than in individual project files.

Signed-off-by: Jon Skeet <jonskeet@google.com>
This commit is contained in:
Jon Skeet 2020-11-10 14:54:01 +00:00 committed by Jon Skeet
parent 50b714cd59
commit 4e98c5a52b
5 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<!-- Disable deterministic source paths for sample projects -->
<DeterministicSourcePaths>False</DeterministicSourcePaths>
<!-- Never pack any sample projects -->
<IsPackable>False</IsPackable>
</PropertyGroup>
</Project>

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>

View File

@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>

View File

@ -2,8 +2,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>

View File

@ -2,5 +2,8 @@
<PropertyGroup>
<!-- Disable deterministic source paths for test projects -->
<DeterministicSourcePaths>False</DeterministicSourcePaths>
<!-- Never pack any test projects -->
<IsPackable>False</IsPackable>
</PropertyGroup>
</Project>