[release/10.0.1xx] [wasm] Always update SDK pack version from workload to current for down level TFM #51272
+6
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #51269 to release/10.0.1xx
Fixes dotnet/aspnetcore#64049
/cc @maraf
Customer Impact
dotnet/aspnetcore#64049
Customers building .NET 9 WebAssembly apps using .NET 10 SDK get incorrect build output.
A possible workaround is manually adding an msbuild target to override the computed version right before framework resolution.
Regression
Introduced in #50949 which added a fingerprint to the msbuild item identity. The missing update to unified SDK pack version wasn't visible until mentioned change, which was the only one backward incompatible in .NET 10 timeframe. The fact down level targeting was using incorrect version was overseen, because all tests were passing, thanks backward compatibility.
Testing
Manual verification of scenarios, both CLI based and VS based
Risk
Mid. The area in which the change is contained can be affected by many parameters.