-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDirectory.Build.props
39 lines (36 loc) · 1.36 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<Configurations>Debug;Release</Configurations>
<OutputPath Condition="'$(OutputPath)' == ''">bin\$(Configuration)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
<Optimize>false</Optimize>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<!-- We want to use PackageReference with packages.lock.json for dependencies management -->
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<ItemDefinitionGroup>
<!--
We don't want to be able to compile code against transitive dependencies,
but still want them to be copied to the output directory
-->
<PackageReference>
<PrivateAssets>contentfiles;analyzers;build;compile</PrivateAssets>
</PackageReference>
</ItemDefinitionGroup>
</Project>