PC Review


Reply
Thread Tools Rate Thread

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

 
 
Nikola Skoric
Guest
Posts: n/a
 
      9th May 2007
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.

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      9th May 2007
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.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Nikola Skoric" <nick-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
> --
> "Now the storm has passed over me
> I'm left to drift on a dead calm sea
> And watch her forever through the cracks in the beams
> Nailed across the doorways of the bedrooms of my dreams"



 
Reply With Quote
 
Dave Shooter
Guest
Posts: n/a
 
      9th May 2007

"Nikola Skoric" <nick-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      9th May 2007
On May 9, 1:57 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:

<snip>

> 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

 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      9th May 2007
Yes, Orcas supports projects that output from .NET 2.0 and on.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Jon Skeet [C# MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On May 9, 1:57 pm, "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
>
> <snip>
>
>> 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
>



 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      10th May 2007
Nicholas Paldino [.NET/C# MVP] wrote:
> 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
 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      10th May 2007
Jon Skeet [C# MVP] wrote:
> On May 9, 1:57 pm, "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
>> 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...


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



 
Reply With Quote
 
Nikola Skoric
Guest
Posts: n/a
 
      10th May 2007
In article <(E-Mail Removed)>,
(E-Mail Removed) says...
> 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...

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a static .NET executable mctodd333@hotmail.com Microsoft Dot NET 3 19th Sep 2006 08:58 PM
VS 2005, compiling against .NET 1.1 Paul Aspinall Microsoft Dot NET Framework 2 1st Dec 2005 10:54 PM
Compiling to Executable File? M P Microsoft Access 3 9th Nov 2005 07:49 AM
Access equivalent of compiling an executable? obembe Microsoft Access Getting Started 4 20th Mar 2005 11:41 PM
Compiling a .net executable =?Utf-8?B?UG9wb2k=?= Microsoft Dot NET 4 23rd Oct 2004 07:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.