Include shfxproj symbols packages in artifact info metadata

This commit is contained in:
Nate McMaster 2018-11-14 22:55:09 -08:00
parent b7a24492b0
commit 3346efc471
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 11 additions and 0 deletions

View File

@ -336,6 +336,7 @@ This targets file should only be imported by .shfxproj files.
<Target Name="GetArtifactInfo" Returns="@(ArtifactInfo)">
<PropertyGroup>
<FullPackageOutputPath>$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg</FullPackageOutputPath>
<SymbolsPackageOutputPath>$(PackageOutputPath)$(PackageId).$(PackageVersion).symbols.nupkg</SymbolsPackageOutputPath>
</PropertyGroup>
<ItemGroup>
@ -346,6 +347,16 @@ This targets file should only be imported by .shfxproj files.
<RepositoryRoot>$(RepositoryRoot)</RepositoryRoot>
<Certificate>$(PackageSigningCertName)</Certificate>
<ShouldBeSigned>true</ShouldBeSigned>
<IsContainer>true</IsContainer>
</ArtifactInfo>
<ArtifactInfo Include="$(SymbolsPackageOutputPath)" Condition="'$(IncludeSymbols)' != 'false'">
<ArtifactType>NuGetSymbolsPackage</ArtifactType>
<PackageId>$(PackageId)</PackageId>
<Version>$(PackageVersion)</Version>
<RepositoryRoot>$(RepositoryRoot)</RepositoryRoot>
<Certificate>$(PackageSigningCertName)</Certificate>
<ShouldBeSigned>true</ShouldBeSigned>
<IsContainer>true</IsContainer>
</ArtifactInfo>
</ItemGroup>
</Target>