Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-02-03 06:41:14 +0300
committerGitHub <noreply@github.com>2021-02-03 06:41:14 +0300
commit9b2776d48183632662e0be873cef029cdb57f8d6 (patch)
treebeb231da6d90e7b868b93e4834f360560ead9dfd
parenta0f85dda3d0ad38b8318e88e8f609b467051c16f (diff)
[release/6.0-preview1] Produce a .version file for Microsoft.NETCore.App in the runtime layout. (#47736)v6.0.0-preview.1.21102.12
* 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: Jeremy Koritzinsky <jekoritz@microsoft.com> Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
-rw-r--r--src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj
index da316816cdd..7bb7d478e28 100644
--- a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj
+++ b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj
@@ -39,7 +39,7 @@
<OverridePackageId>$(SharedFrameworkName).Runtime.$(RuntimeSpecificFrameworkSuffix).$(RuntimeIdentifier)</OverridePackageId>
</PropertyGroup>
- <!--
+ <!--
hostpolicy and hostfxr aren't in the platform manifest in the ref pack and cannot be without breaking things upstack.
We add the entries here to ensure that we don't fail the validation that every file included in the runtime pack is in the platform manifest
without adding the entries to the manifest in the ref pack.
@@ -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" />