Updating my projects to retarget to .NET 4.6
-
Hi guys, So VS 2015 has arrived and I'd like to retarget my /clr projects to build against .NET 4.6. The project Properties page shows ".NET Target Framework Version" => "v4.5.2". But this field is non-editable (Configuration Properties > General, Project Defaults, .NET Target Framework) I updated the SDK targeting quite easily to target the Windows 10 SDK by selecting "10.0.10240.0" in the Target Platform Version combo. Why no similar combobox for .NET targeting? grr. I feel like I'm missing something simple but MS has never really made it simple for us C++/CLI devs. I think must resort to hand-editing the .vcxproj files directly? Surely not. The Add Reference dialog isn't much help either but it does confirm that I'm targeting 4.5.2. Have you upgraded your projects yet? Is there an easy way to switch them to targeting 4.6? John PS. The 'help' is worthless in the properties dialog. It takes me to a "Cannot find requested topic..." page. Help Viewer content and linking has really gotten worse in 2015 in my experience so far.
-
Hi guys, So VS 2015 has arrived and I'd like to retarget my /clr projects to build against .NET 4.6. The project Properties page shows ".NET Target Framework Version" => "v4.5.2". But this field is non-editable (Configuration Properties > General, Project Defaults, .NET Target Framework) I updated the SDK targeting quite easily to target the Windows 10 SDK by selecting "10.0.10240.0" in the Target Platform Version combo. Why no similar combobox for .NET targeting? grr. I feel like I'm missing something simple but MS has never really made it simple for us C++/CLI devs. I think must resort to hand-editing the .vcxproj files directly? Surely not. The Add Reference dialog isn't much help either but it does confirm that I'm targeting 4.5.2. Have you upgraded your projects yet? Is there an easy way to switch them to targeting 4.6? John PS. The 'help' is worthless in the properties dialog. It takes me to a "Cannot find requested topic..." page. Help Viewer content and linking has really gotten worse in 2015 in my experience so far.
Answering my own question for future visitors. You must hand-edit the vcxproj but it's a pretty simple change. Old:
v4.5
New:
v4.6
John