Anytime I build this project it consistently fails with the cryptic message:
|Severity|Code|Description|Project|File|Line|Suppression State|
|---|---|---|---|---|---|---|
|Error||Your project does not reference .NETFramework,Version=v4.0 framework. Add a reference to .NETFramework,Version=v4.0 in the TargetFrameworks property of your project file and then re-run NuGet restore.|bar|C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\NuGet\16.0\Microsoft.NuGet.targets|198||
C:\Program Files\dotnet\sdk\6.0.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1004: Assets file 'D:\a\CMake-P-Invoke\CMake-P-Invoke\build\windows-release\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\a\CMake-P-Invoke\CMake-P-Invoke\build\windows-release\ConsoleApplication.csproj]
So in conclusion: this combo is not supported, right ?