Implement a custom GetArtifactInfo target for shfxproj files

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

View File

@ -332,4 +332,21 @@ This targets file should only be imported by .shfxproj files.
</Target>
<Target Name="CreateManifestResourceNames" />
<Target Name="GetArtifactInfo" Returns="@(ArtifactInfo)">
<PropertyGroup>
<FullPackageOutputPath>$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg</FullPackageOutputPath>
</PropertyGroup>
<ItemGroup>
<ArtifactInfo Include="$(FullPackageOutputPath)">
<ArtifactType>NuGetPackage</ArtifactType>
<PackageId>$(PackageId)</PackageId>
<Version>$(PackageVersion)</Version>
<RepositoryRoot>$(RepositoryRoot)</RepositoryRoot>
<Certificate>$(PackageSigningCertName)</Certificate>
<ShouldBeSigned>true</ShouldBeSigned>
</ArtifactInfo>
</ItemGroup>
</Target>
</Project>