Framework 1.0 vs Framework 1.1
-
Hi to all, I want to ask: I wrote a Visual C# application using VS.NET 2003, so it was created to run under Framework v 1.1 and when I try to launch my application on the mashine where VS.NET 2002 installed I just can do it and some exception occurs. The question is how can I create an assembly wich able to launch on Framework 1.0 using VS.NET 2003? developers team
-
Hi to all, I want to ask: I wrote a Visual C# application using VS.NET 2003, so it was created to run under Framework v 1.1 and when I try to launch my application on the mashine where VS.NET 2002 installed I just can do it and some exception occurs. The question is how can I create an assembly wich able to launch on Framework 1.0 using VS.NET 2003? developers team
VS.NET 2K3 will only build for the .NET Framework 1.1. You could install the .NET Framework 1.1 on the target machine and your app will run without problem. Now, you could also go into the project properties of your app, Common Properties, General and click on Supported Runtimes. Here you will be able to select which version of the Framework your app will compile against, v1.0, v1.1, or BOTH. But, there's a catch...since v1.0 of the .NET Framework doesn't support certain features v1.1 does and v1.1 has some implementation changes from v1.0, your app might not compile against v1.0 or it will compile, but run differently depending on which framework it's running on. RageInTheMachine9532
-
VS.NET 2K3 will only build for the .NET Framework 1.1. You could install the .NET Framework 1.1 on the target machine and your app will run without problem. Now, you could also go into the project properties of your app, Common Properties, General and click on Supported Runtimes. Here you will be able to select which version of the Framework your app will compile against, v1.0, v1.1, or BOTH. But, there's a catch...since v1.0 of the .NET Framework doesn't support certain features v1.1 does and v1.1 has some implementation changes from v1.0, your app might not compile against v1.0 or it will compile, but run differently depending on which framework it's running on. RageInTheMachine9532
Thanx. Tommorow I'll try to intall my homework ;) and I hope you solution will help... www.xedom.com
-
Thanx. Tommorow I'll try to intall my homework ;) and I hope you solution will help... www.xedom.com
Just wanted to add that if you built for 1.0 and ran against a newer framework, you don't need the .config. The framework used is the same or newer than what's referenced in the assembly. The same "gotcha" that Dave mentioned still applies, though, except that deprecated functionality (stuff that doesn't exist in newer frameworks) will cause exceptions to be thrown if you use them, if your assembly even runs. This is much more uncommon, though, as most functionality is usually left in without being changed (functionality may be added to existing classes, but this still works).
Microsoft MVP, Visual C# My Articles