Skip to content

Commit

Permalink
[release/6.0-preview1] Produce a .version file for Microsoft.NETCore.…
Browse files Browse the repository at this point in the history
…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: Jeremy Koritzinsky <jekoritz@microsoft.com>
Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
  • Loading branch information
3 people authored Feb 3, 2021
1 parent a0f85dd commit 9b2776d
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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" />

Expand Down

0 comments on commit 9b2776d

Please sign in to comment.