Skip to content

Commit bf4eb9f

Browse files
authored
Restore the host for the given platform in vcxprojs
1 parent 126904a commit bf4eb9f

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

eng/tools/GenerateFiles/Directory.Build.props.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<DefaultNetCoreTargetFramework>${DefaultNetCoreTargetFramework}</DefaultNetCoreTargetFramework>
44
<ArtifactsShippingPackagesDir>${ArtifactsShippingPackagesDir}</ArtifactsShippingPackagesDir>
55
<TreatWarningsAsErrors Condition="'$(BuildingInsideVisualStudio)' != 'true'">true</TreatWarningsAsErrors>
6-
<LibNetHostAppPackVersion Condition=" '$(LibNetHostAppPackVersion)' == '' ">${LibNetHostAppPackVersion}</LibNetHostAppPackVersion>
7-
6+
87
<!-- Temporarily hardcoded to true -->
98
<SuppressGenerateILCompilerExplicitPackageReferenceWarning>true</SuppressGenerateILCompilerExplicitPackageReferenceWarning>
109
</PropertyGroup>

eng/tools/GenerateFiles/GenerateFiles.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
MicrosoftNETCoreAppRefVersion=$(MicrosoftNETCoreAppRefVersion);
2626
MicrosoftNETCoreAppRuntimeVersion=$(MicrosoftNETCoreAppRuntimeVersion);
2727
MicrosoftPlaywrightCLIVersion=$(MicrosoftPlaywrightCLIVersion);
28-
LibNetHostAppPackVersion=$(BundledNETCoreAppPackageVersion);
2928
SupportedRuntimeIdentifiers=$([MSBuild]::Escape($(SupportedRuntimeIdentifiers)));
3029
ArtifactsShippingPackagesDir=$(ArtifactsShippingPackagesDir)
3130
</_TemplateProperties>
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
<Project>
22
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
3-
3+
44
<PropertyGroup>
55
<KestrelSharedSourceRoot>$(MSBuildThisFileDirectory)..\Kestrel\shared\</KestrelSharedSourceRoot>
6+
7+
<EnableManagedPackageReferenceSupport>true</EnableManagedPackageReferenceSupport>
68
<HostArch>$(Platform)</HostArch>
79
<HostArch Condition="'$(Platform)' == 'Win32'">x86</HostArch>
810
<HostArch Condition="'$(Platform)' == 'AnyCPU'">x64</HostArch>
9-
<LibNetHostPath>$(NetCoreTargetingPackRoot)Microsoft.NETCore.App.Host.win-$(HostArch)\$(LibNetHostAppPackVersion)\runtimes\win-$(HostArch)\native</LibNetHostPath>
11+
<LibNetHostPath>$(NuGetPackageRoot)microsoft.netcore.app.host.win-$(HostArch)\$(MicrosoftNETCoreAppRefVersion)\runtimes\win-$(HostArch)\native</LibNetHostPath>
1012
<!-- This tools version MUST match the same version as runtime uses to compile libnethost.lib -->
1113
<PlatformToolsetVersion>143</PlatformToolsetVersion>
1214
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<PackageDownload Include="Microsoft.NETCore.App.Host.win-$(HostArch)" Version="[$(MicrosoftNETCoreAppRefVersion)]" />
18+
</ItemGroup>
19+
1320
</Project>

0 commit comments

Comments
 (0)