forked from Mapsui/Mapsui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
56 lines (50 loc) · 2.55 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>4.0.0-beta.4</Version>
<NeutralLanguage>en</NeutralLanguage>
<Copyright>Copyright © Mapsui Developers 2018</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Mapsui/Mapsui</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Mapsui/Mapsui</RepositoryUrl>
<Authors>Mapsui Developers</Authors>
<Company>Mapsui Developers</Company>
</PropertyGroup>
<!-- Common Project Properties -->
<PropertyGroup>
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);NU1008;NU1701</NoWarn>
<!-- Enable Windows Targeting on non Windows platforms -->
<EnableWindowsTargeting Condition="'$(OS)' != 'Windows_NT'">true</EnableWindowsTargeting>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)/Nullable.cs" />
<Compile Include="$(MSBuildThisFileDirectory)/InitProperty.cs" />
</ItemGroup>
<!-- Workaround for when setting CentralPackageTransitivePinningEnabled to true it includes in .net Standard
a reference to Microsoft.NETCore.Platforms 6.0.6 which is then added to the nuget dependencies which won't work
Because only Microsoft.NETCore.Platforms 2.0.2 is supported by netstandard2.0 this line fixes this problem. -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.NETCore.Platforms" VersionOverride="2.0.2" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<!--Specify Compiler for Mac Builds-->
<PackageReference Include="Microsoft.Net.Compilers.Toolset">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<!--Disposable Analyzer-->
<PackageReference Include="IDisposableAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!--Threading Analyzer mainly Async Code-->
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>