Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Updating my projects to retarget to .NET 4.6

Updating my projects to retarget to .NET 4.6

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++dotnetvisual-studiohelp
2 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Schroedl
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • J John Schroedl

      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.

      J Offline
      J Offline
      John Schroedl
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups