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:
parent
50b714cd59
commit
4e98c5a52b
|
@ -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>
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue