I just created a new .NET Core 2.2 project with Visual Studio 2019 Community (Version 16.1.6).
Although as a surprise I could not compile the basic project it created.
I see all kinds of errors as it can be seen on this image:
Running the dotnet --list-sdks
command in cmd results in:
1.1.14 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.604 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
2.1.701 [C:\Program Files\dotnet\sdk]
2.2.203 [C:\Program Files\dotnet\sdk]
so I have these SDKs installed.
Maybe my SDK installations somehow became corrupted?
When I tried NuGet restore for the solution, this is the output:
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.2025637
========== Finished ==========
Error occurred while restoring NuGet packages: The local source 'D:\Microsoft\Xamarin\NuGet\' doesn't exist.
I can't recall correctly, but maybe I deleted the latter folder, because it seemed irrelevant (I chose a different location for VS install, so why would the installer copy something there? Non-sense.). If that is the problem, how do I fix it?
Also, why does it even need Xamarin? This is not a xamarin project!
Thanks in advance!