Merge pull request #5817 from piotrpMSFT/piotrpMSFT/infra/RedistPublishVersion
Generate Version file before redist publish
This commit is contained in:
commit
99da46517e
2 changed files with 8 additions and 5 deletions
|
@ -124,11 +124,6 @@
|
||||||
<Move SourceFiles="@(NETCore10Assemblies->'$(SdkOutputDirectory)/%(Filename)%(Extension).bak')"
|
<Move SourceFiles="@(NETCore10Assemblies->'$(SdkOutputDirectory)/%(Filename)%(Extension).bak')"
|
||||||
DestinationFiles="@(NETCore10Assemblies)" />
|
DestinationFiles="@(NETCore10Assemblies)" />
|
||||||
|
|
||||||
<!-- Generate .version file -->
|
|
||||||
<WriteLinesToFile File="$(SdkOutputDirectory)/.version"
|
|
||||||
Lines="$(CommitHash);$(SdkVersion);$(Rid)"
|
|
||||||
Overwrite="true" />
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MSBuildTargetsToCopy Include="$(MSBuildTargetsDirectory)/**/*.targets" />
|
<MSBuildTargetsToCopy Include="$(MSBuildTargetsDirectory)/**/*.targets" />
|
||||||
<MSBuildTargetsToCopy Include="$(MSBuildTargetsDirectory)/**/*.Targets" />
|
<MSBuildTargetsToCopy Include="$(MSBuildTargetsDirectory)/**/*.Targets" />
|
||||||
|
|
|
@ -45,6 +45,14 @@
|
||||||
DestinationFiles="@(SharedFramework->'$(StageDirectory)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
DestinationFiles="@(SharedFramework->'$(StageDirectory)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="PublishVersionFile"
|
||||||
|
BeforeTargets="Publish">
|
||||||
|
|
||||||
|
<WriteLinesToFile File="$(SdkOutputDirectory)/.version"
|
||||||
|
Lines="$(CommitHash);$(SdkVersion);$(Rid)"
|
||||||
|
Overwrite="true" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="GenerateCliRuntimeConfigurationFiles"
|
<Target Name="GenerateCliRuntimeConfigurationFiles"
|
||||||
AfterTargets="Publish">
|
AfterTargets="Publish">
|
||||||
<RemoveAssetFromDepsPackages DepsFile="$(PublishDir)/$(TargetName).deps.json"
|
<RemoveAssetFromDepsPackages DepsFile="$(PublishDir)/$(TargetName).deps.json"
|
||||||
|
|
Loading…
Reference in a new issue