Skip to content

Commit dcd86c9

Browse files
committed
Refactoring.
1 parent 6b52d0a commit dcd86c9

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

Directory.Build.props

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<LangVersion>latest</LangVersion>
1010
<Nullable>enable</Nullable>
11-
12-
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
13-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
14-
15-
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
16-
<IncludeSymbols>true</IncludeSymbols>
17-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
18-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
19-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2011
</PropertyGroup>
2112

2213
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
@@ -28,6 +19,29 @@
2819
<NoWarn>$(NoWarn);CS8600;CS8601;CS8602;CS8604</NoWarn>
2920
</PropertyGroup>
3021

22+
<!-- GitVersion -->
23+
<ItemGroup>
24+
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
25+
<PrivateAssets>all</PrivateAssets>
26+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
27+
</PackageReference>
28+
</ItemGroup>
29+
30+
<!-- Sourcelink and symbol packages -->
31+
<PropertyGroup>
32+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
33+
<IncludeSymbols>true</IncludeSymbols>
34+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
35+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
36+
</PropertyGroup>
37+
38+
<ItemGroup>
39+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
40+
<PrivateAssets>all</PrivateAssets>
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
</PackageReference>
43+
</ItemGroup>
44+
3145
<!-- Code Analysis -->
3246
<PropertyGroup>
3347
<EnableNETAnalyzers>true</EnableNETAnalyzers>
@@ -39,14 +53,6 @@
3953
</ItemGroup>
4054

4155
<ItemGroup>
42-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
43-
<PrivateAssets>all</PrivateAssets>
44-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
45-
</PackageReference>
46-
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
47-
<PrivateAssets>all</PrivateAssets>
48-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
49-
</PackageReference>
5056
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
5157
<PrivateAssets>all</PrivateAssets>
5258
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)