.NET Framework launch condition doesn't seem to match the selected .NET Framework bootstrapper package in Visual Studio 2010

JulienVan
JulienVan used Ask the Experts™
on
Hello,

I've created an add-in for Microsoft Excel 2010 using Visual Studio 2010. This add-in consists in an "Excel 2010 add-in" project and several "Windows Form Application" project references.
All these projects have ".NET Framework 4" selected in the application property called "Target framework" (it was previously set to ".NET Framework 4 Client Prodile" but I've changed it).

In addition, a deployment project has been created to copy the files and registry keys during the installation of the add-in.
The prerequisites of this setup project are:
 - Microsoft .NET Framework 4 (x86 and x64)
 - Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)
 - Windows Installer 3.1

The add-in is working file but when I build the setup project, I've got the following warning messages:
 Warnings during setup project build
I've verified all the project properties and the setup prerequisites, but ".NET Framwork 4" is set everywhere.
Would you know how to remove these warnings?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You set the prerequisites in the deployment to match the target of the project, but you also need to set the launch conditions - right click the deployment project, select "view launch conditions", select the Net thing under launch conditions and set its properties.

Author

Commented:
Thank you mastoo I didn't see it! As you seem to know Visual Studio very well, would you know what is the XML file to modify in order to use the <NetFx40_LegacySecurityPolicy> statement (http://msdn.microsoft.com/en-us/library/dd409253.aspx)?
Many thanks!

Commented:
Thanks.  I stumbled down the same path you were on so I happened to know that, but sorry I'm not familiar with the netfx stuff.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial