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

Fix entries in Version.Details.xml and make version overriding clearer #11561

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Mar 10, 2025

Follow-up to #11145.

We were missing the entry for System.Text.Encoding.CodePages and the source-build-externals intermediate for vs-solutionpersistence in Version.Details.xml which caused a prebuild in dotnet/sdk#47377 and version mismatches in dotnet/sdk#47376.

Also simplified the way we reference the different package versions a bit to make it clearer and synced the list of packages between Version.Details.xml/Versions.props/Packages.props.

Depends on #11555

Follow-up to #11145. We were missing the entry for System.Text.Encoding.CodePages in Version.Details.xml which caused a prebuild in dotnet/sdk#47377.

Also simplified the way we reference the different package versions a bit to make it clearer.
…builtBaseline.xml

We now properly reference it from source-build-externals
@akoeplinger akoeplinger force-pushed the fix-version-details-xml branch from 51274a8 to c7f1f7a Compare March 10, 2025 19:06
@rainersigwald rainersigwald enabled auto-merge (squash) March 10, 2025 19:08
@rainersigwald rainersigwald merged commit 64ea5d7 into main Mar 10, 2025
10 checks passed
@rainersigwald rainersigwald deleted the fix-version-details-xml branch March 10, 2025 21:40
@ViktorHofer
Copy link
Member

/backport to vs17.14

Copy link
Contributor

Started backporting to vs17.14: https://github.com/dotnet/msbuild/actions/runs/13784257663

Copy link
Contributor

@ViktorHofer backporting to "vs17.14" failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix entries in Version.Details.xml and make version overriding clearer
Using index info to reconstruct a base tree...
M	eng/Packages.props
M	eng/Versions.props
M	eng/dependabot/Packages.props
Falling back to patching base and 3-way merge...
Auto-merging eng/dependabot/Packages.props
CONFLICT (content): Merge conflict in eng/dependabot/Packages.props
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
Auto-merging eng/Packages.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix entries in Version.Details.xml and make version overriding clearer
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@ViktorHofer
Copy link
Member

Needs #11571 merged first.

ViktorHofer pushed a commit that referenced this pull request Mar 11, 2025
#11561)

Follow-up to #11145. We were missing the entry for System.Text.Encoding.CodePages in Version.Details.xml which caused a prebuild in dotnet/sdk#47377.

Also simplified the way we reference the different package versions a bit to make it clearer.

Remove Microsoft.VisualStudio.SolutionPersistence from SourceBuildPrebuiltBaseline.xml, since we now properly reference it from source-build-externals
ViktorHofer added a commit that referenced this pull request Mar 11, 2025
…ries in Version.Details.xml (#11571)

* Remove deprecated 4.3.* package references

Both "System.Runtime" and "System.Private.Uri" are inbox in .NETCoreApp since ~2017 and don't need to be referenced explicitly anymore.

They were referenced here as external dependencies brought vulnerable netstandard1.x dependencies in which were then flagged by CG.

That isn't the case anymore. xunit, shouldly and other packages with their corresponding versions used in this repo don't bring netstandard1.x in anymore.

Don't reference "System.Net.Http" for the same reason. It is inbox on .NET Framework, .NETCoreApp and .NET Standard. On .NET Framework a "<Reference Include="System.Net.Http" />" item is needed as it isn't part of the default referenced assemblies.

Note that this change will help when starting to consume a .NET 10 SDK as those would get flagged by NuGet Prune Package Reference and NuGet Audit.

* Avoid netstandard1.x dependencies

* fix build

* Fix entries in Version.Details.xml and make version overriding clearer (#11561)

Follow-up to #11145. We were missing the entry for System.Text.Encoding.CodePages in Version.Details.xml which caused a prebuild in dotnet/sdk#47377.

Also simplified the way we reference the different package versions a bit to make it clearer.

Remove Microsoft.VisualStudio.SolutionPersistence from SourceBuildPrebuiltBaseline.xml, since we now properly reference it from source-build-externals

---------

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants