Hi all... I have been searching all over the internet for a solution to this problem, and I thought I would come here to try and get it resolved after coming up empty...
Up till now, I have been using Visual Studio 2019 for other project types. Now, I need to do a .NET project using Entity Framework so, installed VS2022 alongside VS2019.
I created a brand-new Windows console application with VS2022 and immediately I started getting the error shown in the title.
dotnet --list-sdks
- 5.0.416 [C:\Program Files\dotnet\sdk]
- 6.0.302 [C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\sdk]
- 8.0.302 [C:\Program Files\dotnet\sdk]
I've ensured that my project file looks correct with the proper version of .NET
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
I've also read the information on this page and nothing seemed to be applicable to my problem.
https://video2.skills-academy.com/en-us/dotnet/core/tools/sdk-errors/netsdk1045?f1url=%3FappId%3DDev17IDEF1%26l%3DEN-US%26k%3Dk(NETSDK1045)%26rd%3Dtrue
Also, I am really confused about the error itself. Isn't the current .NET SDK just .NET 8.0? What I have installed? Or is there some other software that might be out of date? And if so, what?
Thanks for any help you all can give me, I really appreciate it!!!
Rick