It is not possible to create a minimal .NET Core project with CMake
My goal is to create a simple Hello World C# .NET Core project and generate the project with CMake. This does not appear to work.
My CMake is as follows
project (mvp LANGUAGES CSharp)
set ( CMAKE_DOTNET_TARGET_FRAMEWORK "netcore2.1")
add_executable(mvp Program.cs)
This results in a .csproj and .sln file which VS 2017 and 2019 will open (and the .csproj does appear to have
<TargetFramework>netcore2.1</TargetFramework>
correctly set, but reports the following error and refuses to build.
An error occurred trying to load the project properties window. Close the window and try again. Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
Edited by Sam P