Update package metadata to include commit hash (#713)

This commit is contained in:
Nate McMaster 2018-03-21 17:42:18 -07:00 committed by GitHub
parent 8ee5007a5d
commit d61d723cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View File

@ -3,7 +3,7 @@
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="Package Versions"> <PropertyGroup Label="Package Versions">
<InternalAspNetCoreSdkPackageVersion>2.1.0-preview2-15742</InternalAspNetCoreSdkPackageVersion> <InternalAspNetCoreSdkPackageVersion>2.1.0-preview2-15746</InternalAspNetCoreSdkPackageVersion>
<MicrosoftAspNetCoreAllPackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreAllPackageVersion> <MicrosoftAspNetCoreAllPackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreAllPackageVersion>
<MicrosoftAspNetCoreAuthenticationCorePackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreAuthenticationCorePackageVersion> <MicrosoftAspNetCoreAuthenticationCorePackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreAuthenticationCorePackageVersion>
<MicrosoftAspNetCoreHostingAbstractionsPackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreHostingAbstractionsPackageVersion> <MicrosoftAspNetCoreHostingAbstractionsPackageVersion>2.1.0-preview2-30355</MicrosoftAspNetCoreHostingAbstractionsPackageVersion>
@ -44,4 +44,4 @@
<XunitRunnerVisualStudioPackageVersion>2.4.0-beta.1.build3945</XunitRunnerVisualStudioPackageVersion> <XunitRunnerVisualStudioPackageVersion>2.4.0-beta.1.build3945</XunitRunnerVisualStudioPackageVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " /> <Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
</Project> </Project>

View File

@ -1,2 +1,2 @@
version:2.1.0-preview2-15742 version:2.1.0-preview2-15746
commithash:21fbb0f2c3fe4a9216e2d59632b98cfd7d685962 commithash:d5f868ce395d404711be71181179fcf63643641e

View File

@ -33,12 +33,16 @@
tfmGroup=$(TargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV); tfmGroup=$(TargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV);
configuration=$(Configuration); configuration=$(Configuration);
copyright=$(Copyright); copyright=$(Copyright);
author=$(Authors);
licenseUrl=$(PackageLicenseUrl); licenseUrl=$(PackageLicenseUrl);
iconUrl=$(PackageIconUrl); iconUrl=$(PackageIconUrl);
projectUrl=$(PackageProjectUrl); projectUrl=$(PackageProjectUrl);
repositoryUrl=$(RepositoryUrl); repositoryUrl=$(RepositoryUrl);
repositoryType=$(RepositoryType);
repositoryCommit=$(RepositoryCommit);
version=$(PackageVersion); version=$(PackageVersion);
description=$(Description); description=$(Description);
serviceable=$([MSBuild]::ValueOrDefault('$(Serviceable)', 'false'));
</NuspecProperties> </NuspecProperties>
</PropertyGroup> </PropertyGroup>
</Target> </Target>

View File

@ -3,8 +3,7 @@
<metadata> <metadata>
<id>Microsoft.AspNetCore.Server.IIS</id> <id>Microsoft.AspNetCore.Server.IIS</id>
<version>$version$</version> <version>$version$</version>
<authors>Microsoft</authors> <authors>$author$</authors>
<owners>Microsoft</owners>
<licenseUrl>$licenseUrl$</licenseUrl> <licenseUrl>$licenseUrl$</licenseUrl>
<copyright>$copyright$</copyright> <copyright>$copyright$</copyright>
<projectUrl>$projectUrl$</projectUrl> <projectUrl>$projectUrl$</projectUrl>
@ -13,7 +12,8 @@
<description>$description$</description> <description>$description$</description>
<language>en-US</language> <language>en-US</language>
<tags>aspnetcore iis</tags> <tags>aspnetcore iis</tags>
<repository type="git" url="$repositoryUrl$" /> <serviceable>$serviceable$</serviceable>
<repository type="$repositoryType$" url="$repositoryUrl$" commit="$repositoryCommit$" />
<dependencies> <dependencies>
<group targetFramework="$tfmGroup$"> <group targetFramework="$tfmGroup$">
<dependency id="Microsoft.AspNetCore.Server.IISIntegration" version="[$version$ , )" /> <dependency id="Microsoft.AspNetCore.Server.IISIntegration" version="[$version$ , )" />