forked from Mapsui/Mapsui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
66 lines (59 loc) · 2.93 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
57
58
59
60
61
62
63
64
65
66
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>4.0.0-beta.8</Version>
<NeutralLanguage>en-US</NeutralLanguage>
<Copyright>Copyright © Mapsui Developers 2018-$([System.DateTime]::Now.ToString(yyyy))</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>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageReleaseNotes>Release notes are at https://github.com/Mapsui/Mapsui/releases</PackageReleaseNotes>
<PackageTags>map maps mapping geo gis osm</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<IsPackable>false</IsPackable> <!--Default to not packable and override in projects that do need to be packed.-->
<!--Disable Run Api Compat Task causes Build failure on github actions with visual studio 2022 17.5 and .net Compilers Toolset 4.6-->
<RunApiCompat>false</RunApiCompat>
</PropertyGroup>
<!--Package Icon Include -->
<ItemGroup>
<None Include="..\logo\png\icon.png" Pack="true" PackagePath="\"/>
<None Include="..\LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>
<!-- 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>
<!--<ItemGroup Condition="'$(SolutionName)'=='Mapsui.Mac.Legacy'" >-->
<ItemGroup>
<!--Specify Compiler for Mac Builds-->
<PackageReference Include="Microsoft.Net.Compilers.Toolset" VersionOverride="4.8.0-2.final">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!--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>