CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION.rst 809 B

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