forked from microsoft/sbom-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
39 lines (35 loc) · 1.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
<Project>
<PropertyGroup Label="Build">
<LangVersion>latest</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<RootNamespace>Microsoft.Sbom</RootNamespace>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Label="Package">
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>Copyright © Microsoft Corporation. All rights reserved.</Copyright>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/microsoft/sbom-tool</PackageProjectUrl>
<RepositoryUrl>https://github.com/microsoft/sbom-tool.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>https://github.com/microsoft/sbom-tool/releases</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" PrivateAssets="all"/>
<PackageReference Include="MinVer" PrivateAssets="all"/>
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="all"/>
</ItemGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)analyzers.ruleset</CodeAnalysisRuleSet>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<NoWarn>NU1608,NU5119</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(OFFICIAL_BUILD)'=='True'">
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(CODEQL_BUILD)'=='True'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>