Skip to content

Commit 96f5319

Browse files
committed
Use correct architecture for host
1 parent e31f0ba commit 96f5319

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Servers/IIS/Directory.Build.props

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
<KestrelSharedSourceRoot>$(MSBuildThisFileDirectory)..\Kestrel\shared\</KestrelSharedSourceRoot>
66

77
<EnableManagedPackageReferenceSupport>true</EnableManagedPackageReferenceSupport>
8-
<HostArch>$(Platform)</HostArch>
9-
<HostArch Condition="'$(Platform)' == 'Win32'">x86</HostArch>
10-
<HostArch Condition="'$(Platform)' == 'AnyCPU'">x64</HostArch>
11-
<LibNetHostPath>$(NuGetPackageRoot)microsoft.netcore.app.host.win-$(HostArch)\$(MicrosoftNETCoreAppRefVersion)\runtimes\win-$(HostArch)\native</LibNetHostPath>
8+
<LibNetHostPath>$(NuGetPackageRoot)microsoft.netcore.app.host.win-$(TargetArchitecture)\$(MicrosoftNETCoreAppRefVersion)\runtimes\win-$(TargetArchitecture)\native</LibNetHostPath>
129
<!-- This tools version MUST match the same version as runtime uses to compile libnethost.lib -->
1310
<PlatformToolsetVersion>143</PlatformToolsetVersion>
1411
</PropertyGroup>
1512

1613
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vcxproj'">
17-
<PackageReference Include="Microsoft.NETCore.App.Host.win-$(HostArch)" Version="$(MicrosoftNETCoreAppRefVersion)" PrivateAssets="all" ExcludeAssets="all" />
14+
<PackageReference Include="Microsoft.NETCore.App.Host.win-$(TargetArchitecture)" Version="$(MicrosoftNETCoreAppRefVersion)" PrivateAssets="all" ExcludeAssets="all" />
1815
</ItemGroup>
1916

2017
</Project>

0 commit comments

Comments
 (0)