• 0

Visual C# 2005 Express and .NET 1.1


Question

I just downloaded the new VC# 2005 Express and tried out the tutorial on making a web browser. I found the development process fantasic. However, when I sent someone my little app, it wouldn't run on his computer.

This is of course because he doesn't have the 2.0 framework (he has 1.1, like most others).

The thing is that I would like to create some apps for people I know but I don't want to have to force them to upgrade to the 2.0 framework (it is a beta afterall).

So I was wondering if anyone found a setting in the new IDE that would allow me to build to the 1.1 framework? I tried Google-ing, and sifting through MSDN but couldn't find much.

Cheers

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Not going to happen. It might be possible to create an empty project, add references to the 1.1 assemblies and recompile it that way, but then you're relying on the command-line csc.exe tool (which does VS 2005's compiling) not to screw over your effort somehow, which is probably too much to ask for, since it is a 2.0 tool.

Even if that workaround does work, if you use ANY of the new features of .NET 2.0 (new classes and projects in VS 2005 use them by default), you'll never get a clean compile against the 1.1 assemblies (if you fluke out and get it to compile, it will never run on 1.1). What's worse, Intellisense will still be using 2.0, so you couldn't know for sure if you were using a new feature, or something that behaves differently between the two versions, until you try to run the app.

Simple answer: It may be remotely possible to do this, but save yourself the headache. Pick one version or the other.

Link to comment
Share on other sites

  • 0
I just downloaded the new VC# 2005 Express and tried out the tutorial on making a web browser. I found the development process fantasic. However, when I sent someone my little app, it wouldn't run on his computer.

This is of course because he doesn't have the 2.0 framework (he has 1.1, like most others).

The thing is that I would like to create some apps for people I know but I don't want to have to force them to upgrade to the 2.0 framework (it is a beta afterall).

So I was wondering if anyone found a setting in the new IDE that would allow me to build to the 1.1 framework? I tried Google-ing, and sifting through MSDN but couldn't find much.

Cheers

The 2.0 Redist is avaible on MSDN. Package it with your product and your friend can then run the software.

Link to comment
Share on other sites

  • 0

That's a good idea. However, I have heard stories that the new 2.0 messes around with the ASP.NET and makes apps that were coded in 1.1 not work.

I suppose that only applies to those who have ASP.NET 1.1 apps running locally (maybe I'm wrong).

If my app is that important (which it ain't), I'll just include some sort of warning about the fact that this is all still in beta status.

Link to comment
Share on other sites

  • 0
Thanks for the response. I think it is a shame that I cannot do this since VS 2003 can (apparently) do it: http://msdn.microsoft.com/library/default....OrComponent.asp

Either 1.1 close enough to 1.0 to be able to switch back and forth or this is one of the features the is excluded from the "Express" versions.

That's a feature of the Framework, not Visual Studio, so it's available regardless of whether you're using Express or not. Assemblies compiled against version .NET 2.0 just aren't compatible with the older versions of the runtime.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.