cmakeconverter icon indicating copy to clipboard operation
cmakeconverter copied to clipboard

Add support for C# Projects

Open whschultz opened this issue 5 years ago • 3 comments

Since version 3.8, CMake supports C# projects. It would be nice to be able to organize complex hierarchies of solutions and projects via CMake instead of separate Visual Studio solutions.

whschultz avatar Oct 22 '18 18:10 whschultz

Cmake-converter works properly only with sln file. What are you proposing for example? C# is not so crossplatform. What kind of C# projects do you want to build with cmake?

pavelliavonau avatar Oct 23 '18 08:10 pavelliavonau

C# can be quite cross-platform, especially with .NET Core. Cmake-converter doesn't work only with .sln files. It works with .vcxproj and .vfproj. I'm proposing adding support for .csproj. Therefore, there would be three different project types supported, all inside the umbrella solution file.

Arguably, C# is more cross-platform than C++, since it compiles down to CIL, a binary suitable to run on any platform supported by .NET, whereas C++ generally compiles for a specific processor (llvm being an exception that works like CIL). In this sense, it's like Java, compiling down to a bytecode, one layer above machine code.

whschultz avatar Dec 19 '18 20:12 whschultz

@whschultz ,CMake creates target binary for current platform. I don't agree with you about cross-plarform of C# but.. Since this https://blogs.windows.com/buildingapps/2018/12/04/announcing-open-source-of-wpf-windows-forms-and-winui-at-microsoft-connect-2018/ I'll consider to implement support of *.csproj.

pavelliavonau avatar Dec 20 '18 10:12 pavelliavonau