|
8 | 8 | <PackageLicenseExpression>MIT</PackageLicenseExpression> |
9 | 9 | <LangVersion>latest</LangVersion> |
10 | 10 | <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> |
20 | 11 | </PropertyGroup> |
21 | 12 |
|
22 | 13 | <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> |
|
28 | 19 | <NoWarn>$(NoWarn);CS8600;CS8601;CS8602;CS8604</NoWarn> |
29 | 20 | </PropertyGroup> |
30 | 21 |
|
| 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 | + |
31 | 45 | <!-- Code Analysis --> |
32 | 46 | <PropertyGroup> |
33 | 47 | <EnableNETAnalyzers>true</EnableNETAnalyzers> |
|
39 | 53 | </ItemGroup> |
40 | 54 |
|
41 | 55 | <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> |
50 | 56 | <PackageReference Include="StyleCop.Analyzers" Version="1.1.118"> |
51 | 57 | <PrivateAssets>all</PrivateAssets> |
52 | 58 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
|
0 commit comments