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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With