-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
40 lines (34 loc) · 1.76 KB
/
Directory.Build.props
File metadata and controls
40 lines (34 loc) · 1.76 KB
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
40
<Project>
<!-- This file will be implicitly linked by all projects in folder -folders -->
<PropertyGroup>
<!-- Default to output to Artifacts folder -->
<OutputPath>$(MSBuildThisFileDirectory)Artifacts/$(MSBuildProjectName)</OutputPath>
<!-- Specific output folder for .NET nanoFramework projects -->
<OutputPath Condition=" '$(TargetFrameworkIdentifier)' == '.NETnanoFramework'">$(MSBuildThisFileDirectory)Artifacts/UnitsNet.NanoFramework/$(MSBuildProjectName)</OutputPath>
</PropertyGroup>
<!-- Workaround for `dotnet test UnitsNet.sln`: https://dasmulli.blog/2018/01/20/make-dotnet-test-work-on-solution-files/ -->
<Target Name="VSTestIfTestProject">
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />
</Target>
<!-- Warnings and errors -->
<PropertyGroup>
<!-- Warning instead of compile error on obsolete errors.-->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--
Warnings stay visible but do not fail the build. NU1903 (high) and NU1904 (critical) still fail.
CS0612 - obsolete member
CS0618 - obsolete member with message
NU1901 - NuGet audit: low severity vulnerability
NU1902 - NuGet audit: moderate severity vulnerability
-->
<WarningsNotAsErrors>612;618;NU1901;NU1902</WarningsNotAsErrors>
</PropertyGroup>
<!-- Build symbol package (.snupkg) to distribute the PDB file for debugging, in addition to Source Link per recommendation: https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink -->
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)/NullableAttributes.cs" />
</ItemGroup>
</Project>