Skip to content

Conversation

@ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented May 3, 2025

Extracted from dotnet/dotnet#176 - which removes the DotNetBuild.props VMR / SB entrypoint. All settings will move into the repo infra eventually.

  • The RestoreUseStaticGraphEvaluation property needs to be set before Arcade's Build.proj builds the solution and in the repo infra so that dotnet/msbuild/NuGet commands use that static graph restore. This works today by passing the property in as a global property in the build scripts. Source-build has issues with static graph which is why it was disabled in DotNetBuild.props. As we now move settings from DotNetBuild.props into the repo infra, define that in eng/Build.props (Arcade extension point) and remove the unnecessary global property from the build scripts.

  • Also set RestoreUseStaticGraphEvaluation in Directory.Solution.props so that VS uses the same restore algorithm.

  • Unrelated: Add the short -sb form for --sourcebuild in eng/build.sh. Arcade's eng/common support the short form.

Extracted from dotnet/dotnet#176

The above PR removes the DotNetBuild.props VMR / SB entrypoint. All settings will move into the repo infra.

The RestoreUseStaticGraphEvaluation property needs to be set before Arcade's Build.proj builds the solution and in the repo infra so that dotnet/msbuild/NuGet commands use that restore mode. Therefore, also define it in eng/Build.props which is imported by Build.proj and remove the prop from the build scripts.

Move the DotNetBuild condition inline into the two places that now set it.
@ViktorHofer ViktorHofer requested review from a team as code owners May 3, 2025 08:59
@ghost ghost added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels May 3, 2025
@ViktorHofer ViktorHofer requested a review from jjonescz May 3, 2025 09:01
@ViktorHofer ViktorHofer requested a review from a team as a code owner May 5, 2025 10:59
@ViktorHofer
Copy link
Member Author

@jjonescz can you please merge the PR in?

@jjonescz
Copy link
Member

jjonescz commented May 5, 2025

Can't since the CI is failing and I don't have admin permissions.
(The bootstrap failure is fixed by #78437 but the stuck Build Analysis also blocks merging)
@jaredpar

@ViktorHofer
Copy link
Member Author

/ba-g Build Analysis is stuck

@ViktorHofer ViktorHofer enabled auto-merge (squash) May 5, 2025 14:20
@ViktorHofer ViktorHofer merged commit e57ec16 into main May 5, 2025
27 of 28 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 5, 2025
@ViktorHofer ViktorHofer deleted the MoveStaticGraphRestoreSettingOutOfScriptsAndVMREntryPoint branch May 5, 2025 15:49
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants