Skip to content

Use Microsoft.NETCore.App.Ref version in place of legacy MicrosoftNETCoreAppPackageVersion #61860

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

Merged
merged 2 commits into from
May 12, 2025

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented May 9, 2025

https://github.com/dotnet/dotnet/blob/main/repo-projects/Directory.Build.props#L247-L251

The reason for this block is that repos tend to use arch specific version properties as proxy version numbers. So aspnetcore will set the runtime pack version based on the MicrosoftNETCoreAppVersion, which it typically sets based on the x64 runtime pack version. But since that's not produced in an x86 build, we jump some through VMR hoops to get this right. The stabilized build exposes a few of these cases where we incorrectly use a few properties, which is quite fixable, but overall this block caught my attention and I think we should remove it. aspnetcore seems to be the biggest user of MicrosoftNETCoreAppVersion, set to the x64 runtime pack version. I was thinking to just changing all the uses to the ref pack version, since the runtime pack and ref pack versions are always aligned. We can then get rid of this block altogether, which would be great.

…CoreAppPackageVersion

https://github.com/dotnet/dotnet/blob/main/repo-projects/Directory.Build.props#L247-L251

The reason for this block is that repos tend to use arch specific version properties as proxy version numbers. So aspnetcore will set the runtime pack version based on the MicrosoftNETCoreAppVersion, which it typically sets based on the x64 runtime pack version. But since that's not produced in an x86 build, we jump some through VMR hoops to get this right.
The stabilized build exposes a few of these cases where we incorrectly use a few properties, which is quite fixable, but overall this block caught my attention and I think we should remove it.
aspnetcore seems to be the biggest user of MicrosoftNETCoreAppVersion, set to the x64 runtime pack version. I was thinking to just changing all the uses to the ref pack version, since the runtime pack and ref pack versions are always aligned. We can then get rid of this block altogether, which would be great
@mmitche mmitche requested review from wtgodbe and a team as code owners May 9, 2025 21:18
@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label May 9, 2025
Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the 1 comment, assuming this is from a global find/replace

@mmitche
Copy link
Member Author

mmitche commented May 12, 2025

LGTM other than the 1 comment, assuming this is from a global find/replace

Yep. Not a totally straight find/replace but close.

@mmitche mmitche merged commit c23abd6 into dotnet:main May 12, 2025
26 of 27 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview5 milestone May 12, 2025
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jun 10, 2025
-Switching to using dotnet/dotnet repository for SDK versions greater than 10.0.0-preview.4
-Updated the source for dependent repository commits: now retrieved from src/manifest.json instead of productCommit-linux-x64.txt.

Changes in dotnet-build:
- The build parameter /p:MicrosoftNETCoreAppRuntimeVersion in build_aspnetcore has been changed to /p:MicrosoftNETCoreAppRefVersion.
  Refer to the supporting pr:dotnet/aspnetcore#61860
- The build parameter /p:Architecture in build_sdk has been renamed to /p:TargetArchitecture.
  Refer to the pr: dotnet/sdk#47977
- The architecture specific property values has been changed in build_sdk
  Refer to pr: dotnet/sdk#49017
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jun 10, 2025
-Switching to using dotnet/dotnet repository for SDK versions greater than 10.0.0-preview.4
-Updated the source for dependent repository commits: now retrieved from src/manifest.json instead of productCommit-linux-x64.txt.

Changes in dotnet-build:
- The build parameter /p:MicrosoftNETCoreAppRuntimeVersion in build_aspnetcore has been changed to /p:MicrosoftNETCoreAppRefVersion.
  Refer to the supporting pr:dotnet/aspnetcore#61860
- The build parameter /p:Architecture in build_sdk has been renamed to /p:TargetArchitecture.
  Refer to the pr: dotnet/sdk#47977
- The architecture specific property values has been changed in build_sdk
  Refer to pr: dotnet/sdk#49017

Signed-off-by: shreya <[email protected]>
ShreyaLaxminarayan added a commit to ShreyaLaxminarayan/dotnet-s390x that referenced this pull request Jun 24, 2025
-Switching to using dotnet/dotnet repository for SDK versions greater than 10.0.0-preview.4
-Updated the source for dependent repository commits: now retrieved from src/manifest.json instead of productCommit-linux-x64.txt.

Changes in dotnet-build:
- The build parameter /p:MicrosoftNETCoreAppRuntimeVersion in build_aspnetcore has been changed to /p:MicrosoftNETCoreAppRefVersion.
  Refer to the supporting pr:dotnet/aspnetcore#61860
- The build parameter /p:Architecture in build_sdk has been renamed to /p:TargetArchitecture.
  Refer to the pr: dotnet/sdk#47977
- The architecture specific property values has been changed in build_sdk
  Refer to pr: dotnet/sdk#49017

Signed-off-by: shreya <[email protected]>
giritrivedi pushed a commit to IBM/dotnet-s390x that referenced this pull request Jun 24, 2025
-Switching to using dotnet/dotnet repository for SDK versions greater than 10.0.0-preview.4
-Updated the source for dependent repository commits: now retrieved from src/manifest.json instead of productCommit-linux-x64.txt.

Changes in dotnet-build:
- The build parameter /p:MicrosoftNETCoreAppRuntimeVersion in build_aspnetcore has been changed to /p:MicrosoftNETCoreAppRefVersion.
  Refer to the supporting pr:dotnet/aspnetcore#61860
- The build parameter /p:Architecture in build_sdk has been renamed to /p:TargetArchitecture.
  Refer to the pr: dotnet/sdk#47977
- The architecture specific property values has been changed in build_sdk
  Refer to pr: dotnet/sdk#49017

Signed-off-by: shreya <[email protected]>
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.

2 participants