Skip to content

Update 16.7 error message when targeting 5.0 #5820

@marcpopMSFT

Description

@marcpopMSFT

Issue
If a customer created a net 5 app or got one from a coworker, opens it in 16.7, we have a bad error experience today as we decide it must be a framework application.
dotnet/core#5311

We don’t recognize the TFM so we assume it’s a .net framework version and the message matches that.

Proposal
Update MSBuild 16.7 with a new message in this specific scenario in the below code path.

@rainersigwald, any concerns just adding a check here for if the version is >= to 5.0 and providing a different error? That seems like the narrowest way to solve this with the least risk. I wouldn’t bother with 16.4.

Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());

Other questions

  • How does 16.7 MSBuild parse TFMs with a platform provided (ie net5.0-windows) and will the value for version above be accurate?
  • Check precompiled apps

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions