Problem with VS2008 Target Framework

  • Thread starter Thread starter zacks
  • Start date Start date
Z

zacks

I am working on an application in VS2008. I have set the target
framework to 2.0. I distributed the app to a coworker in MSI format.
When he tried to install it, he was told that he needed to install the
3.5 framework. I am wondering, when I created the project, I didn't
even notice the dropdown in the create project dialog to select the
target framework, so it was initially created with 3.5 as the target
framework. But I went into the project properties and changed it to
2.0. I wonder if that is why he was told he needed the 3.5 framework?
 
Did you change the properties on the project which created the
executable, or did you change the property on the setup project? The
dependency on the .NET framework in the setup project has to be changed to
..NET 2.0 as well.
 
    Did you change the properties on the project which created the
executable, or did you change the property on the setup project?  The
dependency on the .NET framework in the setup project has to be changed to
.NET 2.0 as well.

Thanks for your quick reply. Sure enough, I checked the setup
project's properties pre-requisites, and 3.5 was checked and 2.0 was
not.
 
    Did you change the properties on the project which created the
executable, or did you change the property on the setup project?  The
dependency on the .NET framework in the setup project has to be changed to
.NET 2.0 as well.

OK, I unchecked 3.5 and checked 2.0 in the setup project properties
prerequisites and rebuilt the setup. I tried installing the app on a
computer that does not have 3.5 framework installed yet and the setup
still tells me that I first need to install the 3.5 framework.

And more ideas?
 
If you have 2.0 on both, then it should only look for .NET 2.0. Are you
sure you are rebuilding the setup proejct? Doing CTRL+SHIFT+B will not
rebuild the setup project, I've always had to right click on the setup
project and select "Rebuild".


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Did you change the properties on the project which created the
executable, or did you change the property on the setup project? The
dependency on the .NET framework in the setup project has to be changed to
.NET 2.0 as well.

OK, I unchecked 3.5 and checked 2.0 in the setup project properties
prerequisites and rebuilt the setup. I tried installing the app on a
computer that does not have 3.5 framework installed yet and the setup
still tells me that I first need to install the 3.5 framework.

And more ideas?
 
    If you have 2.0 on both, then it should only look for .NET 2.0.  Are you
sure you are rebuilding the setup proejct?  Doing CTRL+SHIFT+B will not
rebuild the setup project, I've always had to right click on the setup
project and select "Rebuild".

I always right click on the setup project and click on Build.
 
OK, I unchecked 3.5 and checked 2.0 in the setup project properties
prerequisites and rebuilt the setup. I tried installing the app on a
computer that does not have 3.5 framework installed yet and the setup
still tells me that I first need to install the 3.5 framework.

And more ideas?

Are you certain that you are not referencing any 3.5 versions of any
assemblies? Just a shot in the dark, but you could examine
the .csproj file and see what versions of all references you are
using.

Chris
 
Back
Top