Solved

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

Posted on 2011-09-06
3
561 Views
Last Modified: 2012-06-22
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?
0
Comment
Question by:JulienVan
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
mastoo earned 500 total points
ID: 36496159
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.
0
 
LVL 2

Author Comment

by:JulienVan
ID: 36496343
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!
0
 
LVL 21

Expert Comment

by:mastoo
ID: 36496491
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.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now