Nikhil Nandha
Nikhil Nandha

Reputation: 176

Build failed for Visual Studio for MAC after updating to .net version 6

** /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. (MSB3971) **

Although I have udpated the visual studio but its trowing same error again.

Upvotes: 4

Views: 1761

Answers (2)

foxtdev
foxtdev

Reputation: 188

This is what solved the issue for me:

  1. Go to your Solution properties
  2. Under Build General, uncheck "Use MSBuild on Mono"

Upvotes: 1

Ken Pespisa
Ken Pespisa

Reputation: 22266

Install .NET 6.0.10x SDK. That will solve the problem.

Upvotes: 3

Related Questions