All replies
- Vote
If you're using VS 2012, you can change the target framework of the project by hand editing the file. For details, see: http://stackoverflow.com/a/2921868/65358
Once you target framework 4.5, you can reference 4.5 assemblies.
Note that VS 2012+ is required to target .NET 4.5, though.
Saturday, August 03, 2013 12:35 AM - 0Thanks. I installed vs 2012 update 3 and made the manual changes. That lets me see and select the 4.5 assemblies in "Framework and References", but when I build the project I see this message; Project file contains ToolsVersion="4.5". This toolset is unknown or missing. You may be able to resolve this by installing the appropriate .NET Framework for this toolset. Treating the project as if it had ToolsVersion="4.0". I have version 4.5.50709 installed, I'm pretty sure it got installed with vs 2012. I do also have vs 2010 installed in this machine, not sure if that matters. Any ideas?Monday, August 05, 2013 5:14 AM
- Vote
Thanks for Reed’s help.
Hi Todd,
If we change the target Framework, we would change the platform toolset to a version that supports that Framework. To target the .NET Framework 4.5, we would use a compatible platform toolset “Visual Studio 2012 (v110)”.
Reference:
http://msdn.microsoft.com/en-us/library/vstudio/ff770576(v=vs.110).aspx
Best regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Monday, August 05, 2013 9:29 AM - Vote
You'll also need to set the platform to VS 2012, as Jack mentioned - With C++, the platform + the framework need to match, and for 4.5, you need both to be 2012's setup.
Monday, August 05, 2013 5:12 PM - 0
The "Platform Toolset" has always been "Visual Studio 2012 (v110). I still get the error;
Project file contains ToolsVersion="4.5". This toolset is unknown or missing. You may be able to resolve this by installing the appropriate .NET Framework for this toolset. Treating the project as if it had ToolsVersion="4.0".
Whenever I build it. I'm not sure it's really building with 4.5 because I get the following error when I try to validate a SAML2 assertion signature;
SignatureDescription could not be created for the signature algorithm supplied.
The assertion was create by ADFS and the signature algorithm is SHA-256 which is not supported by .net 4.0. Searching around seems to indicate that message is what you get when .net 4.0 tries to validate a signature created with that algorithm.
17 hours 38 minutes ago - Vote
Hi Todd,
Glad to receive your reply.
If possible, you could re-install .NET Framework 4.5, check it again.
You could download it from here:
http://www.microsoft.com/en-in/download/details.aspx?id=30653
If still no help, I’m afraid that we would check whether it supports it in this specific VC++ project. You could post this issue to the VC++ development forum here:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral
If there's any concern, please feel free to let me know.
Best regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. - So then I guess c++ interop does not work with .net 4.5?