Open RobsonPontin opened 2 days ago
I have the same error with you. But the scenery is a little different. First, create a CLR project A. Then add a C# project. Close VS and open the sln again. The project A shows unloaded
. The error in output windows shows:
G:\Sync\C++\ClassLibrary1\ClassLibrary1\ClassLibrary1.vcxproj : error : SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.Sdk". Exception: "System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Describe the bug
Updating from Visual Studio Preview 3 to Preview 5 caused the VCPKG targets to no longer load C++ projects due to the following error:
The issues is related to the file
Directory.Build.Targets
which has the SDK entry forMicrosoft.Build.Vcpkg
:This works fine with latest VS 2022 17.11.5 and I did test it with VS 2022 Preview 3.
Also note that the project I'm working on is a WinUI 3 apps.
To Reproduce
Having C++ projects on a WinUI 3 solution, add
Directory.Build.Targets
file with the SDK entry forMicrosoft.Build.Vcpkg
.Exceptions (if any)
Further technical details
dotnet --info