Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Problem with VS2008 Target Framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zacks@construction-imaging.com - 29 Feb 2008 15:44 GMT
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?
Nicholas Paldino [.NET/C# MVP] - 29 Feb 2008 15:54 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>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.
[quoted text clipped - 4 lines]
> 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?
zacks@construction-imaging.com - 29 Feb 2008 16:05 GMT
On Feb 29, 10:56 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
>     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.

> <za...@construction-imaging.com> wrote in message
>
[quoted text clipped - 8 lines]
> > 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?
zacks@construction-imaging.com - 29 Feb 2008 16:23 GMT
On Feb 29, 10:56 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
>     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?

> <za...@construction-imaging.com> wrote in message
>
[quoted text clipped - 8 lines]
> > 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?
Nicholas Paldino [.NET/C# MVP] - 29 Feb 2008 16:33 GMT
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".

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

On Feb 29, 10:56 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> 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?

> <za...@construction-imaging.com> wrote in message
>
[quoted text clipped - 8 lines]
> > 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?
zacks@construction-imaging.com - 29 Feb 2008 17:03 GMT
On Feb 29, 11:35 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
>     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.

> <za...@construction-imaging.com> wrote in message
>
[quoted text clipped - 26 lines]
> > > 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?
Chris Dunaway - 29 Feb 2008 19:33 GMT
On Feb 29, 10:23 am, za...@construction-imaging.com wrote:
> On Feb 29, 10:56 am, "Nicholas Paldino [.NET/C# MVP]"
>
[quoted text clipped - 23 lines]
> > > 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?

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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.