Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Common.props after the Arcade.SDK in props file #59309

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Dec 4, 2024

The Common.props file now depends on the DotNetBuild property which isn't available before the Arcade SDK is imported. Therefore move the import down after the Arcade SDK is imported. I verified (for every single property defined in Common.props) that it isn't used anywhere in the Arcade.SDK or in aspnetcore before where it's now imported.

It felt more correct to move this down than to change the condition in Common.props from DotNetBuild to DotNetBuildRepo. I don't see any reason why to restrict that file from using Arcade SDK properties. The general recommendation from the Arcade team is to import the Arcade SDK as early as possbile in the Directory.Build.* files.

The Common.props file now depends on the `DotNetBuild` property which isn't available before the Arcade SDK is imported.
Therefore move the import down after the Arcade SDK is imported.
I verified (for every single property defined in Common.props) that it isn't used anywhere in the Arcade.SDK or in aspnetcore before where it's now imported.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Dec 4, 2024
@ViktorHofer ViktorHofer requested a review from wtgodbe December 4, 2024 13:09
@akoeplinger
Copy link
Member

akoeplinger commented Dec 4, 2024

Another (unrelated) case that is broken today is

<IsStableBuild Condition=" '$(DotNetFinalVersionKind)' == 'release' ">true</IsStableBuild>

DotNetFinalVersionKind gets set by eng/Versions.props but that is imported by the Arcade imports which happens afterwards.

@javiercn javiercn enabled auto-merge (squash) December 4, 2024 15:11
@javiercn javiercn merged commit de76fa2 into main Dec 4, 2024
27 checks passed
@javiercn javiercn deleted the FixCommonPropsCondition branch December 4, 2024 15:29
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Dec 4, 2024
akoeplinger added a commit that referenced this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants