How do I change the .NET framework bootstrapper package?

Drew picture Drew · Mar 21, 2011 · Viewed 24.1k times · Source

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.

Answer

Drew picture Drew · Mar 23, 2011

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.