1CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION
2-------------------------------------
3
4.. versionadded:: 3.12
5
6Default value for :prop_tgt:`DOTNET_TARGET_FRAMEWORK_VERSION`
7property of targets.
8
9This variable is used to initialize the
10:prop_tgt:`DOTNET_TARGET_FRAMEWORK_VERSION` property on all
11targets. See that target property for additional information. When set,
12:variable:`CMAKE_DOTNET_TARGET_FRAMEWORK` takes precednece over this
13variable. See that variable or the associated target property
14:prop_tgt:`DOTNET_TARGET_FRAMEWORK` for additional information.
15
16
17Setting ``CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION`` may be necessary
18when working with ``C#`` and newer .NET framework versions to
19avoid referencing errors with the ``ALL_BUILD`` CMake target.
20
21This variable is only evaluated for :ref:`Visual Studio Generators`
22VS 2010 and above.
23