Description
Context
Due to customers receiving bad error messages when using an older SDK and targeting net5.0
, we've decided to improve this error message so that it provides a proper solution to their problem.
Old Message: The reference assemblies for {0} were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
New Message (when targeting net5.0
and on an older SDK): The reference assemblies for "{0}" were not found. You might be using an older SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK.
The Problem
Some legacy apps (UWP Windows Store 8/8.1 and potentially others) would target netcore50
, not to be confused with the newer net5.0
. If one happens to build one of these legacy apps on VS16.7+, they could receive the newer message which doesn't help their scenario.
The Path Forward
After discussions with @richlander , @terrajobst , and @rainersigwald , it's looking like we're okay marking this scenario as no longer supported.
This issue essentially acknowledges this as a breaking change and is meant to host the discussion for this change.