VS: Add DOTNET_SDK property to generate SDK-style C# projects

Changes in cmVisualStudio10TargetGenerator::Generate to write .Net
SDK-style project for VS generators VS 19 and above. Also adds
documentation and tests.

Issue: #20227
This commit is contained in:
Sumit Bhardwaj
2021-12-15 08:21:34 -08:00
parent a450cc9533
commit 0eea32a376
26 changed files with 357 additions and 3 deletions
@@ -0,0 +1,9 @@
vs-csharp-dotnet-sdk
--------------------
* The :ref:`Visual Studio Generators` for VS 2019 and above learned to
support .NET SDK-style project files (``.csproj``) for C# projects.
See the :prop_tgt:`DOTNET_SDK` target property and corresponding
:variable:`CMAKE_DOTNET_SDK` variable.
However, this version of CMake does not yet support using
:command:`add_custom_command` in .NET SDK-style projects.