Skip to content

Commit

Permalink
stamp commit into package
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Jun 16, 2018
1 parent 49daf25 commit 7af6f17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Authors>Oren Novotny</Authors>
<Copyright>© Oren Novotny</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/onovotny/MSBuildSdkExtras</RepositoryUrl>
<RepositoryUrl>https://github.com/onovotny/MSBuildSdkExtras</RepositoryUrl>
<PackageProjectUrl>https://github.com/onovotny/MSBuildSdkExtras</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/onovotny/MSBuildSdkExtras/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageReleaseNotes>https://github.com/onovotny/MSBuildSdkExtras/blob/master/README.md</PackageReleaseNotes>
Expand Down
7 changes: 7 additions & 0 deletions Source/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="All"/>
</ItemGroup>

<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All"/>
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions Source/MSBuild.Sdk.Extras/MSBuild.Sdk.Extras.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<repository type="$repositoryType$" url="$repositoryUrl$" />
<repository type="$repositoryType$" url="$repositoryUrl$" commit="$SourceRevisionId$" />
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<developmentDependency>true</developmentDependency>
<serviceable>true</serviceable>
<packageTypes>
<packageType name="$packageType$" />
</packageTypes>
Expand Down
4 changes: 3 additions & 1 deletion Tools/MSBuild.Packaging.targets
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<PropertyGroup>
<!-- This property must be overridden to remove a few targets that compile assemblies -->
<CoreBuildDependsOn>
InitializeSourceControlInformationFromSourceControlManager;
BuildOnlySettings;
PrepareForBuild;
PreBuildEvent;
Expand Down Expand Up @@ -65,7 +66,8 @@
projectUrl=$(PackageProjectUrl);
licenseUrl=$(PackageLicenseUrl);
packageType=$(PackageType);
releaseNotes=$(PackageReleaseNotes)
releaseNotes=$(PackageReleaseNotes);
sourceRevisionId=$(SourceRevisionId)
</NuspecProperties>
</PropertyGroup>
</Target>
Expand Down

0 comments on commit 7af6f17

Please sign in to comment.