core icon indicating copy to clipboard operation
core copied to clipboard

not able to build .net 6.0 console app in visual studio 2022

Open virusharma opened this issue 1 year ago • 0 comments

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create Operating System: windows

I have recently installed visual studio 2022 and I was trying to build hello world tutorial program but it is giving me build error complaining about not able to find SDK for .Net6.0. I have checked dotnet --info command as well dotnet --list-sdks command and I see the dotnet 6.0 sdks being installed. Also, I checked the path environment variable and I see it is referring only 64 bit path of dotnet. I uninstalled and resintalled VS 2022 and that did not help either

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.

can you please advise how can I resolve this issue?

virusharma avatar Aug 06 '22 20:08 virusharma