-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.targets
73 lines (65 loc) · 3.94 KB
/
Directory.Build.targets
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
<Target Name="CustomAfterBuildTarget" AfterTargets="Build">
<!-- <Message Text="Hello from CustomAfterBuildTarget" Importance="high" />-->
<!-- <Message Text="EnableNETAnalyzers '$(EnableNETAnalyzers)'" Importance="high"/>-->
<!-- <Message Text="AnalysisLevel '$(AnalysisLevel)'" Importance="high"/>-->
<!-- <Message Text="AnalysisMode '$(AnalysisMode)'" Importance="high"/>-->
<!-- <Message Text="TreatWarningsAsErrors '$(TreatWarningsAsErrors)'" Importance="high"/>-->
<!-- <Message Text="CodeAnalysisTreatWarningsAsErrors '$(CodeAnalysisTreatWarningsAsErrors)'" Importance="high"/>-->
<!-- <Message Text="EnforceCodeStyleInBuild '$(EnforceCodeStyleInBuild)'" Importance="high"/>-->
<!-- <Message Text="TargetFramework '$(TargetFramework)'" Importance="high"/>-->
<!-- <Message Text="ImplicitUsings '$(ImplicitUsings)'" Importance="high"/>-->
<!-- <Message Text="Nullable '$(Nullable)'" Importance="high"/>-->
<!-- <Message Text="Authors '$(Authors)'" Importance="high"/>-->
<!-- <Message Text="Company '$(Company)'" Importance="high"/>-->
<!-- <Message Text="Copyright '$(Copyright)'" Importance="high"/>-->
<!-- <Message Text="CopyrightKaylumah '$(CopyrightKaylumah)'" Importance="high"/>-->
<!-- <Message Text="PublishRepositoryUrl '$(PublishRepositoryUrl)'" Importance="high"/>-->
<!-- <Message Text="Language '$(Language)'" Importance="high"/>-->
<!-- <Message Text="EnableBannedApiAnalyzers '$(EnableBannedApiAnalyzers)'" Importance="high"/>-->
<!-- <Message Text="MSBuildProjectExtension '$(MSBuildProjectExtension)'" Importance="high"/>-->
<!-- <Message Text="BannedSymbolsFullPath '$(BannedSymbolsFullPath)'" Importance="high"/>-->
<!-- <Message Text="RunSettingsFilePath '$(RunSettingsFilePath)'" Importance="high"/>-->
</Target>
<ItemGroup Label="BannedApiAnalyzers" Condition="'$(EnableBannedApiAnalyzers)' == 'true' AND Exists('$(BannedSymbolsFullPath)')">
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<AdditionalFiles Include="$(BannedSymbolsFullPath)"/>
</ItemGroup>
<ItemGroup Label="IDesignAnalyzers" Condition="'$(EnableIDesignAnalyzers)' == 'true' AND Exists('$(UsingAnalyzerFullPath)')">
<PackageReference Include="IDesign.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<AdditionalFiles Include="$(UsingAnalyzerFullPath)"/>
</ItemGroup>
<ItemGroup Label="SonarAnalyzers" Condition="'$(EnableSonarAnalyzers)' == 'true'">
<PackageReference Include="SonarAnalyzer.CSharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup>
<AssemblyMetadata Include="SdkVersion" Value="$(ArcadeSdkVersion)"/>
<AssemblyMetadata Include="BuildId" Value="$(BuildId)"/>
<AssemblyMetadata Include="BuildNumber" Value="$(BuildNumber)"/>
</ItemGroup>
<Target Name="IncludeSourceRevisionId" BeforeTargets="GetAssemblyAttributes">
<ItemGroup>
<AssemblyMetadata Include="SourceRevisionId" Value="$(SourceRevisionId)"/>
<AssemblyMetadata Include="RepositoryType" Value="$(RepositoryType)"/>
</ItemGroup>
</Target>
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<InternalsVisibleTo Include="Test.Unit" />
</ItemGroup>
</Project>