DOTNET_TARGET_FRAMEWORK

From Get docs
Cmake/docs/3.21/prop tgt/dotnet target framework


DOTNET_TARGET_FRAMEWORK

New in version 3.17.


Specify the .NET target framework.

Used to specify the .NET target framework for C++/CLI and C#. For example: netcoreapp2.1.

This property is only evaluated for Visual Studio Generators VS 2010 and above.

Can be initialized for all targets using the variable CMAKE_DOTNET_TARGET_FRAMEWORK.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_tgt/DOTNET_TARGET_FRAMEWORK.html