Skip to content

Commit 9d9f92f

Browse files
add a Directory.Build.props which is sensible in context of this repository, and may help progress with appveyor and dotnet sdk update in this branch.
1 parent e1c07ee commit 9d9f92f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Directory.Build.props

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project>
2+
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.fsproj'">
3+
<!--
4+
note: tolerate obsolete calls
5+
-->
6+
<WarningsNotAsErrors>$(WarningsNotAsErrors);44;</WarningsNotAsErrors>
7+
<LangVersion>latest</LangVersion>
8+
</PropertyGroup>
9+
<PropertyGroup>
10+
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
11+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
12+
<Deterministic>true</Deterministic>
13+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14+
<!--
15+
note: preclude few nuget warnings of breaking the build
16+
NU1504: Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: xxx 4.5.1, xxx 4.8.2.
17+
NU1701: Package 'xxx 14.0.1016.290' was restored using 'yyy' instead of the project target framework 'zzz'. This package may not be fully compatible with your project.
18+
NU1903: Package 'xxx' 2.0.0 has a known moderate severity vulnerability, https://github.com/advisories/xxx
19+
NU1903: Package 'xxx' 2.0.0 has a known high severity vulnerability, https://github.com/advisories/xxx
20+
NU1904: Package 'xxx' 5.0.0 has a known critical severity vulnerability, https://github.com/advisories/xxx
21+
-->
22+
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1504;NU1701;NU1902;NU1903;NU1904</WarningsNotAsErrors>
23+
</PropertyGroup>
24+
</Project>

0 commit comments

Comments
 (0)