Search This Blog

Tuesday, March 3, 2009

Visual Studio 2008 setup projects always require .NET 3.5

I developed a simple console app in Visual Studio 2008 for a client whose XP machines are all running .NET framework 2.0 and sent them a setup program to install it.

Despite my specifically building the app to run under .NET framework 2.0 the setup program told the client that he had to install .NET framework 3.5 before continuing. I checked each dependency of the console app and the setup program itself and in each case it was built to run under .NET framework 2.0.

The solution was pretty out of the way -- in Visual Studio 2008 when building the setup program click on the "View" menu item, then "Editor," then "Launch Conditions" ... that's where the requirement for NET framework 3.5 is. Reset this to NET framework 2.0, rebuild the setup program, and the setup program will be satisfied with NET framework 2.0.

No comments: