Skip to content

Commit eafaa76

Browse files
authored
Don't overbuild when the ProjectToBuild / -projects flag is passed in (dotnet#59170)
* Create binlog when running project template tests * Don't pass ProjectToBuild to both desktop msbuild and dotnet build when using both engines * Don't build native tests in project templates * revert these two
1 parent 3a87639 commit eafaa76

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ stages:
665665
-NoBuild
666666
-NoBuildDeps
667667
-configuration Release
668+
-bl
668669
displayName: Run project template tests
669670

670671
artifacts:

eng/build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,13 @@ if ($RuntimeSourceFeed -or $RuntimeSourceFeedKey) {
293293
[string[]]$MSBuildOnlyArguments = ''
294294

295295
if ($All) { $dotnetBuildArguments += '/p:BuildAllProjects=true' }
296-
if ($Projects) { $MSBuildArguments += "/p:ProjectToBuild=$Projects" }
296+
if ($Projects) {
297+
if ($BuildNative) {
298+
$MSBuildOnlyArguments += "/p:ProjectToBuild=$Projects"
299+
} else {
300+
$dotnetBuildArguments += "/p:ProjectToBuild=$Projects"
301+
}
302+
}
297303

298304
if ($NoBuildInstallers) { $MSBuildOnlyArguments += "/p:BuildInstallers=false"; $BuildInstallers = $false }
299305
if ($BuildInstallers) { $MSBuildOnlyArguments += "/p:BuildInstallers=true" }

0 commit comments

Comments
 (0)