Compiling for .NET Framework 1.x in VS 2005

J

jtertin

Can you force VS 2005 to compile a program to be compatible with
version 1.x of the .NET Framework? HOW!?
 
O

Oenone

jtertin said:
Can you force VS 2005 to compile a program to be compatible with
version 1.x of the .NET Framework?

No. You'll need VS 2002/2003 in order to do this. You can install them
side-by-side if you wish without any interference between the two.
 
J

jeff

theoretically.

Oenone said:
No. You'll need VS 2002/2003 in order to do this. You can install them
side-by-side if you wish without any interference between the two.
 
P

Patrice

I heard about http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSBee that
should do that.

The default situation is that each version of VS.NET targets a particular
version of the .NET framework (VS 2005 creates 2.0 applications, VS2003
targets 1.1 and VS 2002 targets 1.0).


Also a 1.1 application could be able to run under 1.0. Support for running a
2.0 application under 1.1 was dropped because there are so much additions
that it would be likely anyway that a vast majority of 2.0 applications
would use 2.0 specific features and couldn't run in 1.1).

Hope this helps.
 
O

Oenone

jeff said:
theoretically.

Assuming that comment is in reference to the side-by-side installation, it's
certainly not just theory. I've got VS2003 and 2005 installed together on
both machines I work on and have absolutely no problems with it whatsoever.
 
J

jeff

glad u have better luck than me...

Oenone said:
Assuming that comment is in reference to the side-by-side installation,
it's certainly not just theory. I've got VS2003 and 2005 installed
together on both machines I work on and have absolutely no problems with
it whatsoever.
 
G

Guest

I'm interested in know what issues you had. I have VS2003 and VS2005
installed on the same machine and have had no problems activlely developing
and maintaining applications with both versions. Maybe we can help.

jeff said:
glad u have better luck than me...
 
G

Guest

You can not force VS2005 to compile your assembly using the framework v1.1.
However, assuming that your assembly CAN run in .NET v1.1 (if compiled with
VS2003), then you can do this.

1. Complie your code in VS2005
2. In your app.config file, use the <supportedRuntime> tag to force your
app to run in .NET v1.1

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="2.0.50727"/>
</startup>
</configuration>

That will force your assembly to run under v1.1. If that is not installed,
it will run under v2.0. I've only tried this once or twice before, but it
should work.
 
G

Guest

You can not force VS2005 to compile your assembly using the framework v1.1.
However, assuming that your assembly CAN run in .NET v1.1 (if compiled with
VS2003), then you can do this.

1. Complie your code in VS2005
2. In your app.config file, use the <supportedRuntime> tag to force your
app to run in .NET v1.1

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="2.0.50727"/>
</startup>
</configuration>

That will force your assembly to run under v1.1. If that is not installed,
it will run under v2.0. I've only tried this once or twice before, but it
should work.
 
G

Guest

You can not force VS2005 to compile your assembly using the framework v1.1.
However, assuming that your assembly CAN run in .NET v1.1 (if compiled with
VS2003), then you can do this.

1. Complie your code in VS2005
2. In your app.config file, use the <supportedRuntime> tag to force your
app to run in .NET v1.1

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="2.0.50727"/>
</startup>
</configuration>

That will force your assembly to run under v1.1. If that is not installed,
it will run under v2.0. I've only tried this once or twice before, but it
should work.
 
G

Guest

You can not force VS2005 to compile your assembly using the framework v1.1.
However, assuming that your assembly CAN run in .NET v1.1 (if compiled with
VS2003), then you can do this.

1. Complie your code in VS2005
2. In your app.config file, use the <supportedRuntime> tag to force your
app to run in .NET v1.1

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="2.0.50727"/>
</startup>
</configuration>

That will force your assembly to run under v1.1. If that is not installed,
it will run under v2.0. I've only tried this once or twice before, but it
should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top