Skip to content

Commit 55ba8e8

Browse files
committed
Fix build
1 parent 4a438bc commit 55ba8e8

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/Servers/IIS/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
<HostArch>$(Platform)</HostArch>
99
<HostArch Condition="'$(Platform)' == 'Win32'">x86</HostArch>
1010
<HostArch Condition="'$(Platform)' == 'AnyCPU'">x64</HostArch>
11-
<HostArch Condition="'$(DotNetBuild)' == 'true'">$(TargetArchitecture)</HostArch>
11+
<HostArch Condition="'$(DotNetBuild)' == 'true' AND '$(DotNetBuildPass)' != '2'">$(TargetArchitecture)</HostArch>
1212
<LibNetHostPath>$(NuGetPackageRoot)microsoft.netcore.app.host.win-$(HostArch)\$(LibNetHostAppPackVersion)\runtimes\win-$(HostArch)\native</LibNetHostPath>
1313
<!-- This tools version MUST match the same version as runtime uses to compile libnethost.lib -->
1414
<PlatformToolsetVersion>143</PlatformToolsetVersion>
1515
</PropertyGroup>
1616

1717
<!-- Platform is different during restore than during build. Therefore, restore everything when not building the product. -->
18-
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vcxproj' and '$(DotNetBuild)' != 'true'">
18+
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vcxproj' and ('$(DotNetBuild)' != 'true' OR '$(DotNetBuildPass)' == '2') ">
1919
<PackageReference Include="Microsoft.NETCore.App.Host.win-x64" Version="[$(LibNetHostAppPackVersion)]" PrivateAssets="all" ExcludeAssets="all" />
2020
<PackageReference Include="Microsoft.NETCore.App.Host.win-x86" Version="[$(LibNetHostAppPackVersion)]" PrivateAssets="all" ExcludeAssets="all" />
2121
<PackageReference Include="Microsoft.NETCore.App.Host.win-arm64" Version="[$(LibNetHostAppPackVersion)]" PrivateAssets="all" ExcludeAssets="all" />
2222
</ItemGroup>
2323

24-
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vcxproj' and '$(DotNetBuild)' == 'true'">
24+
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vcxproj' and '$(DotNetBuild)' == 'true' AND '$(DotNetBuildPass)' != '2' ">
2525
<PackageReference Include="Microsoft.NETCore.App.Host.win-$(TargetArchitecture)" Version="[$(LibNetHostAppPackVersion)]" PrivateAssets="all" ExcludeAssets="all" />
2626
</ItemGroup>
2727

src/Servers/IIS/IntegrationTesting.IIS/src/Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@
3030
<EmbeddedResource Include="Http.config" />
3131
</ItemGroup>
3232

33-
<!-- Enforce build order in the VMR -->
34-
<ItemGroup Condition="'$(DotNetBuild)' == 'true' AND '$(DotNetBuildPass)' == '2' ">
35-
<ProjectReference Include="$(RepoRoot)\src\Installers\Windows\WindowsHostingBundle\WindowsHostingBundle.wixproj"
36-
Private="false"
37-
ReferenceOutputAssembly="false"
38-
SkipGetTargetFrameworkProperties="true" />
39-
</ItemGroup>
40-
4133
<Target Name="ValidateNativeComponentsBuilt" AfterTargets="Build" Condition="'$(UseIisNativeAssets)' == 'true' and '$(SkipTestBuild)' != 'true'">
4234
<Error Text="Required dll from ANCM has not been built. To build ANCM, you must use MSBuild.exe."
4335
Condition="!Exists('$(AspNetCoreModuleV2ShimDll)') OR !Exists('$(AspNetCoreModuleV2OutOfProcessHandlerDll)')" />

0 commit comments

Comments
 (0)