MantisBT - CMake
View Issue Details
0014216CMakeCMakepublic2013-06-14 07:182014-03-05 09:58
Christian Maaser 
Brad King 
normalfeaturealways
closedfixed 
CMake 2.8.11.1 
CMake 2.8.12CMake 2.8.12 
0014216: Add support for .NET target framework version
The MSVS generators do no support setting the .NET target framework version, yet. As described here http://msdn.microsoft.com/en-us/library/vstudio/ff770576.aspx [^] this isn't even supported by the VS IDE, and usually needs to be changed by manually editing the .vcxproj file and adding a new XML node.
The only alternative to that is to pass the target framework version to msbuild.exe, but obviously that isn't feasible when using cmake.
-
-
c++, CMake, msvc
related to 0014499closed Brad King Add support for .NET target framework version for VS 2008 
patch vs_dotnet_target_framework_version.patch (1,548) 2013-06-14 07:20
https://public.kitware.com/Bug/file/4789/vs_dotnet_target_framework_version.patch
patch vs_dotnet_target_framework_version_2.patch (1,635) 2013-06-14 07:28
https://public.kitware.com/Bug/file/4790/vs_dotnet_target_framework_version_2.patch
Issue History
2013-06-14 07:18Christian MaaserNew Issue
2013-06-14 07:20Christian MaaserFile Added: vs_dotnet_target_framework_version.patch
2013-06-14 07:23Christian MaaserNote Added: 0033283
2013-06-14 07:24Christian MaaserTag Attached: c++
2013-06-14 07:24Christian MaaserTag Attached: CMake
2013-06-14 07:24Christian MaaserTag Attached: msvc
2013-06-14 07:28Christian MaaserFile Added: vs_dotnet_target_framework_version_2.patch
2013-06-14 07:31Christian MaaserNote Added: 0033284
2013-06-14 08:16Brad KingNote Added: 0033286
2013-06-14 08:16Brad KingAssigned To => Brad King
2013-06-14 08:16Brad KingStatusnew => resolved
2013-06-14 08:16Brad KingResolutionopen => fixed
2013-06-14 08:16Brad KingFixed in Version => CMake 2.8.12
2013-06-14 08:16Brad KingTarget Version => CMake 2.8.12
2013-10-21 08:56Brad KingRelationship addedrelated to 0014499
2014-03-05 09:58Robert MaynardNote Added: 0035288
2014-03-05 09:58Robert MaynardStatusresolved => closed

Notes
(0033283)
Christian Maaser   
2013-06-14 07:23   
I added an experimental patch that adds a new target property named "VS_DOTNET_TARGET_FRAMEWORK_VERSION", and which generates the required XML node in case that property is set. If it isn't set nothing is added to the .vcxproj file to maintain compatibility with existing cmake projects.
(0033284)
Christian Maaser   
2013-06-14 07:31   
Whoops, please ignore the first attachment... :)
(0033286)
Brad King   
2013-06-14 08:16   
Applied, thanks:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cfe6300a [^]
(0035288)
Robert Maynard   
2014-03-05 09:58   
Closing resolved issues that have not been updated in more than 4 months