Skip to content

Commit 768378e

Browse files
authored
SBRP control update (#908)
* SBRP control update * Don't pass some params
1 parent 936b4a4 commit 768378e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
1818
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
1919
export DOTNET_MULTILEVEL_LOOKUP=0
2020

21-
if [[ $@ == *"ArcadeInnerBuildFromSource=true"* ]]; then
21+
if [[ $@ == *"DotNetBuildInnerRepo=true"* ]]; then
2222
"$scriptroot/eng/common/build.sh" --build --restore --pack "$@"
2323
else
2424
"$scriptroot/eng/common/build.sh" -sb "$@"

eng/DotNetBuild.props

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<Target Name="TriggerBuildDependencyPackageProjects"
11-
Condition="'$(ArcadeInnerBuildFromSource)' == 'true'"
11+
Condition="'$(DotNetBuildInnerRepo)' == 'true'"
1212
BeforeTargets="Execute">
1313
<PropertyGroup>
1414
<LocalNuGetPackageCacheDirectory Condition="'$(LocalNuGetPackageCacheDirectory)' == ''">$(CurrentRepoSourceBuiltNupkgCacheDir)</LocalNuGetPackageCacheDirectory>
@@ -21,8 +21,12 @@
2121

2222
<!-- 'SourceBuildOutputDir' must be included as a build parameter in order to correct new SBRPs referencing online feeds when dependent on DependencyPackageProjects. -->
2323
<!-- See https://github.com/dotnet/source-build-reference-packages/pull/858 -->
24+
<!-- This command purposefully does not pass DotNetBuildRepo or DotNetBuildOrchestrator, even though that would be the typical pattern for
25+
inner command args. The issue is that if they are passed, this file will re-imported on the dependency package project invocation,
26+
and because this target executes before Execute, the build will infinitely recurse. This probably could be fixed in other ways, but
27+
given that SBRP is slated at some point to get proper support for project refs as a replacement for this invocation, this isn't really worth doing. -->
2428
<Exec
25-
Command="./build.sh --configuration $(Configuration) /bl:$(ArtifactsDir)sourcebuild-dependency-projects.binlog /p:LocalNuGetPackageCacheDirectory=$(LocalNuGetPackageCacheDirectory) /p:SourceBuildOutputDir=$(SourceBuildOutputDir) /p:BuildDependencyPackageProjects=true /p:SetUpSourceBuildIntermediateNupkgCache=true /p:DotNetBuildFromSource=true /p:ArcadeInnerBuildFromSource=true /p:MicrosoftNetCoreIlasmPackageRuntimeId=$(MicrosoftNetCoreIlasmPackageRuntimeId) $(_AdditionalDependencyProjectsBuildArgs)"
29+
Command="./build.sh --configuration $(Configuration) /bl:$(ArtifactsDir)sourcebuild-dependency-projects.binlog /p:LocalNuGetPackageCacheDirectory=$(LocalNuGetPackageCacheDirectory) /p:SourceBuildOutputDir=$(SourceBuildOutputDir) /p:BuildDependencyPackageProjects=true /p:SetUpSourceBuildIntermediateNupkgCache=true /p:DotNetBuildSourceOnly=true /p:DotNetBuildInnerRepo=true /p:MicrosoftNetCoreIlasmPackageRuntimeId=$(MicrosoftNetCoreIlasmPackageRuntimeId) $(_AdditionalDependencyProjectsBuildArgs)"
2630
WorkingDirectory="$(InnerSourceBuildRepoRoot)"
2731
EnvironmentVariables="@(InnerBuildEnv)" />
2832
</Target>

0 commit comments

Comments
 (0)