forked from DSharpPlus/DSharpPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
57 lines (53 loc) · 2.78 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
<Project>
<!-- Build -->
<PropertyGroup>
<!-- Add '_DisableAnalyzers' to the list of compilation dependencies -->
<CoreCompileDependsOn>$(CoreCompileDependsOn);_DisableAnalyzers</CoreCompileDependsOn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>false</IsPackable>
<LangVersion>Latest</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<NoWarn>CS1591</NoWarn>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<ProjectRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), "DSharpPlus.sln"))</ProjectRoot>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<TargetFramework>net7.0</TargetFramework>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<Version>5.0.0</Version>
<Version Condition="'$(Nightly)' != ''">$(Version)-nightly-$(Nightly)</Version>
</PropertyGroup>
<!-- Nuget -->
<PropertyGroup>
<Authors>Naamloos, afroraydude, DrCreo, Death, TiaqoY0, Axiom, Emzi0767, IDoEverything, Velvet, OoLunar, akiraveliara, DSharpPlus contributors</Authors>
<Company>DSharpPlus developers</Company>
<PackageIcon>dsharpplus.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://github.com/DSharpPlus/DSharpPlus</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>discord, discord-api, bots, discord-bots, chat, dsharp, dsharpplus, csharp, dotnet, vb-net, fsharp</PackageTags>
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://github.com/DSharpPlus/DSharpPlus</RepositoryUrl>
</PropertyGroup>
<!-- SourceLink -->
<PropertyGroup>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!-- Resource Files -->
<ItemGroup>
<None Include="$(ProjectRoot)/LICENSE" Pack="true" PackagePath=""/>
<None Include="$(ProjectRoot)/README.md" Pack="true" PackagePath=""/>
<None Include="$(ProjectRoot)/logo/dsharpplus.png" Pack="true" PackagePath=""/>
<!-- Remove the 'JSImportGenerator' analyzer by default to improve compilation time. +200ms is apparently enough to require this change. -->
<RemoveAnalyzer Include="Microsoft.Interop.JavaScript.JSImportGenerator" />
</ItemGroup>
<Target Name="_DisableAnalyzers" DependsOnTargets="ResolveTargetingPackAssets" Inputs="@(RemoveAnalyzer)" Outputs="|%(Identity)|">
<ItemGroup>
<!-- Remove the analyzer specified in 'RemoveAnalyzer' from the list of analyzers -->
<Analyzer Remove="@(Analyzer)" Condition="'%(Analyzer.Identity)' == '$(RemoveAnalyzer)'"/>
</ItemGroup>
</Target>
</Project>