Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the .NET framework bootstrapper package?

I have a C# project that I previously had targeting .NET 4.0, and now I want to target .NET 3.5, but I am getting this warning:

The version of the .NET Framework launch condition '.NET Framework 3.5' does not match the selected .NET Framework bootstrapper package. Update the .NET Framework launch condition to match the version of the .NET Framework selected in the Prerequisites Dialog Box.

But when I look under Publish->Prerequisites, .NET framework 3.5 SP1 is checked.

What do I need to do to get rid of this warning? There is no checkbox for .NET framework 3.5 without SP1, can I just not check any box?

I checked the launch condition, and the .NET framework launch condition version is already 3.5.

like image 369
Drew Avatar asked Mar 21 '11 18:03

Drew


People also ask

What is ClickOnce bootstrapper package for Microsoft .NET Framework?

The . NET Framework 4.6 ClickOnce Bootstrapper package updates the prerequisite components list in Visual Studio 2013 by installing the required files that enable Visual Studio 2013 to offer the . NET Framework 4.6 entry in the list of available prerequisites.

What is bootstrapper package?

A bootstrapper package is a group of directories and files that contain manifest files that describe how the prerequisite should be installed. The bootstrapper first detects whether any of the prerequisites are already installed. If prerequisites are not installed, first the bootstrapper shows the license agreements.


2 Answers

I found that I needed to right click on my Setup and Deployment project, hit properties, go to prerequisites, and uncheck .NET framework 4 and check .NET framework 3.5.

I had done that for all of the projects but for the setup and deployment project. I didn't realize it had its own prerequisites section.

like image 81
Drew Avatar answered Sep 24 '22 21:09

Drew


It's likely coming from the installer project that you have within the solution. I'm guessing you do have one, as it's the only place I've seen Visual Studio talk about launch conditions.

Select it in Solution Explorer, and then at the top click the little icon with binoculars (Launch Condition Editor).

Under Launch Conditions, right click on the .NET Framework and open the properties, and then change the Version to .NET Framework 3.5.

like image 35
dotalchemy Avatar answered Sep 23 '22 21:09

dotalchemy