Compiling an .NET v1.1 executable with MS VS 2005


N

Nikola Skoric

The problem is really quite straightforward: I develop my applications
in Microsoft Visual C# 2005 Express Edition, and I need to run the
application on Windows XP which have .NET Framework version 1.1
installed, and installing .NET Framework 2.0 is not an option.

And, I can't believe what I'm seeing while googling. Is there really no
way to compile code for .NET Framework 1.1 with Microsoft Visual C# 2005
Express Edition? Please, tell me I'm getting it wrong, because I don't
want to downgrade to VS 2002 if not absoultely necessary.
 
Ad

Advertisements

N

Nicholas Paldino [.NET/C# MVP]

Nikola,

Out of the box, you can not build solutions for .NET 1.1 with VS.NET
2005. However, Microsoft has a project on gotdotnet.com called "MSBee"
which is a set of MSBuild extras which will allow you to use the VS.NET 2005
edition to build .NET 1.1 applications.

From Orcas on, you will be able to select which framework you want to
target out of the box.

Hope this helps.
 
D

Dave Shooter

Nikola Skoric said:
The problem is really quite straightforward: I develop my applications
in Microsoft Visual C# 2005 Express Edition, and I need to run the
application on Windows XP which have .NET Framework version 1.1
installed, and installing .NET Framework 2.0 is not an option.

And, I can't believe what I'm seeing while googling. Is there really no
way to compile code for .NET Framework 1.1 with Microsoft Visual C# 2005
Express Edition? Please, tell me I'm getting it wrong, because I don't
want to downgrade to VS 2002 if not absoultely necessary.

As I understand, Visual C# 2005 Express can only complie for the 2.0
framework. However, this doesn't stop you from installing the 1.1 SDK and
using a build tool such as NAnt (http://nant.sourceforge.net/) to build your
app outside of the IDE.

I can't recall if the express edition allows you to define external tools,
but if you can, you can define NAnt as an external tool starting in the
solution directory, where it will automatically start the default build
script. You can then run it from within the IDE.
 
J

Jon Skeet [C# MVP]

On May 9, 1:57 pm, "Nicholas Paldino [.NET/C# MVP]"

From Orcas on, you will be able to select which framework you want to
target out of the box.

Is that meant to target .NET 1.1 as well as 2.0/3.0/3.5? From memory,
beta 1 doesn't offer 1.1 as an option. Admittedly it's getting to the
stage where hopefully that's not such an issue...

Jon
 
N

Nicholas Paldino [.NET/C# MVP]

Yes, Orcas supports projects that output from .NET 2.0 and on.

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

Jon Skeet said:
On May 9, 1:57 pm, "Nicholas Paldino [.NET/C# MVP]"

From Orcas on, you will be able to select which framework you want to
target out of the box.

Is that meant to target .NET 1.1 as well as 2.0/3.0/3.5? From memory,
beta 1 doesn't offer 1.1 as an option. Admittedly it's getting to the
stage where hopefully that's not such an issue...

Jon
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Nicholas said:
Out of the box, you can not build solutions for .NET 1.1 with VS.NET
2005. However, Microsoft has a project on gotdotnet.com called "MSBee"
which is a set of MSBuild extras which will allow you to use the VS.NET 2005
edition to build .NET 1.1 applications.

Or use NAnt which as a main feature support building for different
platforms (different versions of MS .NET and different versions of
Mono).

Arne
 
Ad

Advertisements

?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Jon said:
Is that meant to target .NET 1.1 as well as 2.0/3.0/3.5? From memory,
beta 1 doesn't offer 1.1 as an option. Admittedly it's getting to the
stage where hopefully that's not such an issue...

2.0 has only been out for one and a half year (non-beta).

There could easily be some production systems running on 1.1 where
they want new features and an upgrade is not an option.

Arne
 
Ad

Advertisements

N

Nikola Skoric

As I understand, Visual C# 2005 Express can only complie for the 2.0
framework. However, this doesn't stop you from installing the 1.1 SDK and
using a build tool such as NAnt (http://nant.sourceforge.net/) to build your
app outside of the IDE.

Huh. I've downloaded MSBee, tried to figure out how it works and failed.
In fact, I failed at the MSBuild part since all of the documentation I
found is based on presumption that I have a giant project on my hand.
So, there are no straightforward examples for a newbie (at least I found
none).

Then I turned to NAnt, for which I found some basic level examples. I
even figured out how to use NAnt SlingShot all by myself ;-) But, after
successfuly making .build file with SlingShot and successfuly runing
NAnt, I just can't find the executable which I should get by building
something...
 

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