cmake_csharp_example icon indicating copy to clipboard operation
cmake_csharp_example copied to clipboard

Suggestion - make this work for a c# console app

Open dcleblanc opened this issue 5 years ago • 2 comments

Nice and simple, HelloWorld.cs

What would be really cool is making it work on Linux with .NET Core

dcleblanc avatar Oct 09 '19 01:10 dcleblanc

@dcleblanc, I agree it would be cool if it worked on Linux, but sadly (as of the last time I checked) the Visual Studio CMake generator isn't supported for Linux, so it's not possible.

bemehiser avatar Oct 09 '19 01:10 bemehiser

If you started with dotnet add, that will make the csproj file for you. If I could then sort out how to get cmake to do something which would then invoke dotnet build on this, it would be great. Been wrestling with this for some time, your code is the closest thing I've found.

dcleblanc avatar Oct 09 '19 01:10 dcleblanc