i dont get it... setup insists on .net 3.5

  • Thread starter Thread starter Heath P. Dillon
  • Start date Start date
H

Heath P. Dillon

Hi,
I am trying to sort out a problem when creating a setup project.

I have created a new winforms project, making sure I select .net 2.0
framework from the inital create screen.
I just add a standard form, no controls, no nothing.
I remove unused references
I build the project and of course no problems

I can now copy this single exe file created to another machine that only has
..net framework 2.0 installed, and I can start the application just fine..

I now add in a new project to my solution, selecting a setup project, and
again setting it to be .net framework 2.0

I then go into the setup up projects properties and go to the prerequisites
section and for some reason it has selecte .netframework 3.5 as a
prerequistes, so I unselect this, and select 2.0

I then build the solution and go to my PC that only has .net 2.0 and execute
the setup exe file, which then insists on me installing .net 3.5.

Why oh why? My application is so basic, and only needs 2.0....

What am I doing wrong ???

Thanks
 
Heath said:
Hi,
I am trying to sort out a problem when creating a setup project.

I have created a new winforms project, making sure I select .net 2.0
framework from the inital create screen.
I just add a standard form, no controls, no nothing.
I remove unused references
I build the project and of course no problems

I can now copy this single exe file created to another machine that only
has .net framework 2.0 installed, and I can start the application just
fine..

I now add in a new project to my solution, selecting a setup project,
and again setting it to be .net framework 2.0

I then go into the setup up projects properties and go to the
prerequisites section and for some reason it has selecte .netframework
3.5 as a prerequistes, so I unselect this, and select 2.0

I then build the solution and go to my PC that only has .net 2.0 and
execute the setup exe file, which then insists on me installing .net 3.5.

Why oh why? My application is so basic, and only needs 2.0....

What am I doing wrong ???

Thanks


You don't mention which version of Visual Studio you're running, but
I'll assume 2008.

I too have struggled with this problem and have so far been able to keep
on top of it by also making sure the following is performed -

In addition to unchecking items in the Prerequisites area you need to go
into "References". Remove System.Core .NET 3.5.0.0 and System.Xml.Linq
..NET 3.5.0.0 as these require .NET 3.5.

You should now find your app will happily run with just .NET 2.0.

HTH

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
You don't mention which version of Visual Studio you're running, but
I'll assume 2008.

I too have struggled with this problem and have so far been able to keep
on top of it by also making sure the following is performed -

In addition to unchecking items in the Prerequisites area you need to go
into "References".  Remove System.Core .NET 3.5.0.0 and System.Xml.Linq
.NET 3.5.0.0 as these require .NET 3.5.

You should now find your app will happily run with just .NET 2.0.

HTH

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.

As addition, choosing .NET Framework 2.0 as "target framework" may
help in 2008 to make out whether any .NET-3.5 namespaces were
imported, because IDE may warn you on application compilation as well
due to awareness of .3.5 objects and when the target was set to 2.0.

Onur Güzel
 
Back
Top