diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-02-03 06:41:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 06:41:14 +0300 |
commit | 9b2776d48183632662e0be873cef029cdb57f8d6 (patch) | |
tree | beb231da6d90e7b868b93e4834f360560ead9dfd | |
parent | a0f85dda3d0ad38b8318e88e8f609b467051c16f (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.sfxproj | 21 |
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" /> |