forked from DSharpPlus/DSharpPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
73 lines (64 loc) · 3.27 KB
/
Directory.Build.props
File metadata and controls
73 lines (64 loc) · 3.27 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
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
67
68
69
70
71
72
73
<Project>
<PropertyGroup>
<!-- general properties -->
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<Authors>Naamloos, afroraydude, DrCreo, Death, TiaqoY0, Axiom, Emzi0767, IDoEverything, Velvet, OoLunar, akiraveliara, DSharpPlus contributors</Authors>
<Company>DSharpPlus developers</Company>
<PackageProjectUrl>https://github.com/DSharpPlus/DSharpPlus</PackageProjectUrl>
<RepositoryUrl>https://github.com/DSharpPlus/DSharpPlus</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>dsharpplus.png</PackageIcon>
<PackageIconUrl>https://raw.githubusercontent.com/DSharpPlus/DSharpPlus/master/logo/dsharpplus.png</PackageIconUrl>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<NoWarn>CS1591</NoWarn>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<ManagePackageVersionsCentrally>True</ManagePackageVersionsCentrally>
<!-- SourceLink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<Optimize>False</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">
<Version>$(VersionPrefix)-$(VersionSuffix)-$(BuildNumber)</Version>
<AssemblyVersion>$(VersionPrefix).$(BuildNumber)</AssemblyVersion>
<FileVersion>$(VersionPrefix).$(BuildNumber)</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' == ''">
<Version>$(VersionPrefix)-$(VersionSuffix)</Version>
<AssemblyVersion>$(VersionPrefix).0</AssemblyVersion>
<FileVersion>$(VersionPrefix).0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(VersionSuffix)' == ''">
<Version>$(VersionPrefix)</Version>
<AssemblyVersion>$(VersionPrefix).0</AssemblyVersion>
<FileVersion>$(VersionPrefix).0</FileVersion>
</PropertyGroup>
<ItemGroup>
<None Include="../logo/dsharpplus.png" Pack="true" PackagePath="/"/>
</ItemGroup>
<ItemGroup>
<!-- We want to remove JSImportGenerator by default, becuase it takes a good deal of compilation time -->
<RemoveAnalyzer Include="Microsoft.Interop.JavaScript.JSImportGenerator" />
</ItemGroup>
<PropertyGroup>
<CoreCompileDependsOn>$(CoreCompileDependsOn);_DisableAnalyzers</CoreCompileDependsOn>
</PropertyGroup>
<Target Name="_DisableAnalyzers" DependsOnTargets="ResolveTargetingPackAssets" Inputs="@(RemoveAnalyzer)" Outputs="|%(Identity)|">
<PropertyGroup>
<_RemoveAnalyzer>%(RemoveAnalyzer.Identity)</_RemoveAnalyzer>
</PropertyGroup>
<ItemGroup>
<Analyzer Remove="$(_RemoveAnalyzer)"/>
<Analyzer Remove="@(Analyzer)" Condition="'%(Analyzer.Filename)' == '$(_RemoveAnalyzer)'"/>
</ItemGroup>
</Target>
</Project>