-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
19 lines (17 loc) · 883 Bytes
/
Directory.Build.props
File metadata and controls
19 lines (17 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Project>
<PropertyGroup>
<DisableCheckingDuplicateNuGetItems>true</DisableCheckingDuplicateNuGetItems>
<NoWarn>$(NoWarn);FS2003;NU1903;NU1904;FS0057</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<!--
Changing the LangVersion based on TFM because F# 9 brings in new features that older SDK's can't support.
See https://github.com/dotnet/fsharp/issues/14313 for an example.
To keep this library as backward compatible as possible we're setting the LangVersion to 8.0 by default.
Then, we're assuming if you're building for net9.0 you're using F# 9 Language features.
-->
<LangVersion>8.0</LangVersion>
<LangVersion Condition="'$(TargetFramework)' == 'net9.0'">9.0</LangVersion>
<Nullable Condition="'$(TargetFramework)' == 'net9.0'">enable</Nullable>
</PropertyGroup>
</Project>