Skip to content

Commit e005de3

Browse files
committed
Fix build
1 parent 966967a commit e005de3

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ stages:
136136
-pack
137137
-all
138138
-noBuildJava
139+
-noBuildNative
139140
/p:OnlyPackPlatformSpecificPackages=true
140141
$(_BuildArgs)
141142
$(_InternalRuntimeDownloadArgs)
@@ -151,6 +152,7 @@ stages:
151152
-sign
152153
-pack
153154
-noBuildJava
155+
-noBuildNative
154156
/p:DotNetSignType=$(_SignType)
155157
/p:OnlyPackPlatformSpecificPackages=true
156158
$(_BuildArgs)

.azure/pipelines/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ extends:
185185
-pack
186186
-all
187187
-noBuildJava
188+
-noBuildNative
188189
/p:OnlyPackPlatformSpecificPackages=true
189190
$(_BuildArgs)
190191
$(_InternalRuntimeDownloadArgs)
@@ -200,6 +201,7 @@ extends:
200201
-sign
201202
-pack
202203
-noBuildJava
204+
-noBuildNative
203205
/p:DotNetSignType=$(_SignType)
204206
/p:OnlyPackPlatformSpecificPackages=true
205207
$(_BuildArgs)

eng/Build.props

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
$(RepoRoot)src\Servers\Kestrel\perf\PlatformBenchmarks\**\*.csproj;
5656
$(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;
5757
" />
58+
59+
<!-- This project requires inputs from x64, x86, and arm64 on Windows - therefore in the VMR, we build it in pass 2 -->
60+
<ProjectToExclude Include="
61+
$(RepoRoot)src\Servers\IIS/IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj;
62+
"
63+
Condition=" '$(TargetOsName)' == 'win' and '$(DotNetBuild)' == 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1') " />
5864
</ItemGroup>
5965

6066
<Choose>
@@ -76,16 +82,25 @@
7682
<AdditionalProperties>Platform=x86</AdditionalProperties>
7783
<DotNetBuildPass>$(DotNetBuildPass)</DotNetBuildPass>
7884
</ProjectToBuild>
85+
<ProjectToBuild Include="$(RepoRoot)src\Servers\IIS/IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj" >
86+
<DotNetBuildPass>$(DotNetBuildPass)</DotNetBuildPass>
87+
</ProjectToBuild>
7988
</ItemGroup>
8089
</When>
8190
<Otherwise>
8291
<!-- BuildNative -->
83-
<ItemGroup Condition=" '$(TargetOsName)' == 'win'">
92+
<ItemGroup Condition=" '$(TargetOsName)' == 'win' AND '$(DotNetBuild)' == 'true' ">
8493
<NativeProjects Condition="'$(TargetArchitecture)' == 'x64'" Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=x64" />
8594
<NativeProjects Condition="'$(TargetArchitecture)' == 'x86'" Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=Win32" />
8695
<NativeProjects Condition="'$(TargetArchitecture)' == 'arm64'" Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=arm64" />
8796
</ItemGroup>
8897

98+
<ItemGroup Condition=" '$(TargetOsName)' == 'win' AND $(DotNetBuild)' != 'true' AND ('$(TargetArchitecture)' == 'x86' OR '$(TargetArchitecture)' == 'x64' OR '$(TargetArchitecture)' == 'arm64') ">
99+
<NativeProjects Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=x64" />
100+
<NativeProjects Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=Win32" />
101+
<NativeProjects Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)" AdditionalProperties="Platform=arm64" />
102+
</ItemGroup>
103+
89104
<ItemGroup>
90105
<ProjectToBuild Condition=" $(BuildNative) " Include="@(NativeProjects)" Exclude="@(ProjectToExclude)" BuildStep="native" />
91106
<ProjectToExclude Condition=" !$(BuildNative) " Include="@(NativeProjects)" />

0 commit comments

Comments
 (0)