[release/9.0.1xx] Fix tasks not loading on .NET Framework (#8952)#8956
Merged
ViktorHofer merged 1 commit intorelease/9.0.1xxfrom Apr 17, 2025
Merged
[release/9.0.1xx] Fix tasks not loading on .NET Framework (#8952)#8956ViktorHofer merged 1 commit intorelease/9.0.1xxfrom
ViktorHofer merged 1 commit intorelease/9.0.1xxfrom
Conversation
MiYanni
approved these changes
Apr 17, 2025
f210ff0 to
17e762d
Compare
17e762d to
e3139ec
Compare
rainersigwald
approved these changes
Apr 17, 2025
mmitche
pushed a commit
to dotnet/sdk
that referenced
this pull request
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Partial backport of #8952
/cc @marcpopMSFT
This fixes a regression due to a TFM mismatch in msbuild task dependencies that was merged 10 days ago . The regression hasn't shipped anywhere yet but affects upcoming releases: release/9.0.106 up to 9.0.300.
Customer Impact
The msbuild task assemblies from the Microsoft.TemplateEngine.Authoring.Tasks package throw the following exception when loaded with desktop msbuild (i.e. in VS):
Change the .NET Framework assemblies TFM from net481 to net472 so that the task project resolves the .NET Framework dependencies instead of the .NET Standard dependencies which have a different assembly version and need binding redirects.
Regression
Regressed with 7fa9bf9
Testing
Filed #8955 for comprehensive tests. Verified that the referenced assembly version now matches the deployed binaries assembly version for both msbuild task assemblies.
Risk
Medium - Changing the TFM of the .NETFramework assemblies in packages from net481 to net472.