未验证 提交 9b2776d4 编写于 作者: G github-actions[bot] 提交者: GitHub

[release/6.0-preview1] Produce a .version file for Microsoft.NETCore.App in...

[release/6.0-preview1] Produce a .version file for Microsoft.NETCore.App in the runtime layout. (#47736)

* Produce a .version file for Microsoft.NETCore.App in the runtime layout.

* Update src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj

* Update src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj
Co-authored-by: NJeremy Koritzinsky <jekoritz@microsoft.com>
Co-authored-by: NJeremy Koritzinsky <jkoritzinsky@gmail.com>
上级 a0f85dda
......@@ -121,6 +121,25 @@
<NativeRuntimeAsset Include="$(_diaSymReaderPathIfExists)" />
</ItemGroup>
<!-- VS uses this file to show the target framework in the drop down. -->
<Target Name="CreateDotVersionFile"
DependsOnTargets="InitializeSourceControlInformationFromSourceControlManager"
BeforeTargets="GetFilesToPublish"
Condition="'$(DisableSourceLink)' != 'true'">
<ItemGroup>
<_VersionFile Include="$(IntermediateOutputPath).version" TargetPath="shared/$(SharedFrameworkName)/$(Version)/" />
</ItemGroup>
<WriteLinesToFile
Lines="$(SourceRevisionId);$(Version)"
File="@(_VersionFile)"
Overwrite="true"
WriteOnlyWhenDifferent="true" />
<ItemGroup>
<FilesToPublish Include="@(_VersionFile)" />
<FileWrites Include="@(_VersionFile)" />
</ItemGroup>
</Target>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.SharedFramework.Sdk" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册