Skip to content

Commit f355564

Browse files
authored
Bundle the .NET Runtime in the archives in the VMR as well (#60905)
1 parent 90cc8cd commit f355564

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Framework/App.Runtime/src/aspnetcore-runtime-composite.proj

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<DotNetRuntimeArchive>$(BaseIntermediateOutputPath)$(DotNetRuntimeArchiveFileName)</DotNetRuntimeArchive>
3333
</PropertyGroup>
3434

35-
<Target Name="_DownloadAndExtractDotNetRuntime" Condition="'$(DotNetBuild)' != 'true'" Returns="$(DotNetRuntimeArchive)">
35+
<Target Name="_DownloadAndExtractDotNetRuntime" Returns="$(DotNetRuntimeArchive)">
3636
<ItemGroup>
3737
<UrisToDownload Include="@(RemoteAssetBaseURL->'%(Identity)$(DotNetRuntimeDownloadPath)')" />
3838
</ItemGroup>
@@ -51,10 +51,10 @@
5151
<MakeDir Directories="$(OutputPath)" />
5252

5353
<!-- Extract the dotnet-runtime archive -->
54-
<Exec Condition="'$(ArchiveFormat)' == 'tar.gz' and '$(DotNetBuild)' != 'true'"
54+
<Exec Condition="'$(ArchiveFormat)' == 'tar.gz'"
5555
Command="tar -xzf $(DotNetRuntimeArchive) -C $(OutputPath)" />
5656

57-
<Unzip Condition="'$(ArchiveFormat)' == 'zip' and '$(DotNetBuild)' != 'true'"
57+
<Unzip Condition="'$(ArchiveFormat)' == 'zip'"
5858
SourceFiles="$(DotNetRuntimeArchive)"
5959
DestinationFolder="$(OutputPath)"
6060
OverwriteReadOnlyFiles="true" />

src/Framework/App.Runtime/src/aspnetcore-runtime.proj

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<DotNetRuntimeArchive>$(BaseIntermediateOutputPath)$(DotNetRuntimeArchiveFileName)</DotNetRuntimeArchive>
3636
</PropertyGroup>
3737

38-
<Target Name="_DownloadAndExtractDotNetRuntime" Condition="'$(DotNetBuild)' != 'true'" Returns="$(DotNetRuntimeArchive)">
38+
<Target Name="_DownloadAndExtractDotNetRuntime" Returns="$(DotNetRuntimeArchive)">
3939
<ItemGroup>
4040
<UrisToDownload Include="@(RemoteAssetBaseURL->'%(Identity)$(DotNetRuntimeDownloadPath)')" />
4141
</ItemGroup>
@@ -54,10 +54,10 @@
5454
<MakeDir Directories="$(OutputPath)" />
5555

5656
<!-- Extract the dotnet-runtime archive -->
57-
<Exec Condition="'$(ArchiveFormat)' == 'tar.gz' and '$(DotNetBuild)' != 'true'"
57+
<Exec Condition="'$(ArchiveFormat)' == 'tar.gz'"
5858
Command="tar -xzf $(DotNetRuntimeArchive) -C $(OutputPath)" />
5959

60-
<Unzip Condition="'$(ArchiveFormat)' == 'zip' and '$(DotNetBuild)' != 'true'"
60+
<Unzip Condition="'$(ArchiveFormat)' == 'zip'"
6161
SourceFiles="$(DotNetRuntimeArchive)"
6262
DestinationFolder="$(OutputPath)"
6363
OverwriteReadOnlyFiles="true" />

0 commit comments

Comments
 (0)