Compile as 1.0 on 1.1 FW
-
I want to compile my application as a Framework 1.0 app on Framework 1.1. This is not because I'm too lazy to install 1.1, but Windows MCE requires it. I guess I need some command line options, but can't find it in MSDE. Please help me out. Theo
-
1. I'm using VS 2003 Pro 2. I'm almost sure it can be done in commandline, I only don't know how.
Nope. VS2002 will ONLY build against the .NET Framework 1.0. VS2003 will ONLY build against the .NET Framework 1.1. This is because the compilers are not built into Visual Studio. They are an integral parts of the .NET Framework itself. You can compile a .NET Framework 1.1 app and alter it's configuration to run under 1.0, IF it doesn't use any 1.1 specific classes. You can't use the .NET Framework 1.1 compilers to compile a completely native .NET Framework 1.0 application. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Nope. VS2002 will ONLY build against the .NET Framework 1.0. VS2003 will ONLY build against the .NET Framework 1.1. This is because the compilers are not built into Visual Studio. They are an integral parts of the .NET Framework itself. You can compile a .NET Framework 1.1 app and alter it's configuration to run under 1.0, IF it doesn't use any 1.1 specific classes. You can't use the .NET Framework 1.1 compilers to compile a completely native .NET Framework 1.0 application. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Can I do something like that with the 2.0 framework? And how? Niklas Ulvinge aka IDK
-
Can I do something like that with the 2.0 framework? And how? Niklas Ulvinge aka IDK
Nope. No version of the .NET Framework is going to compile to a natively lower version. See Working with Multiple Versions of the .NET Framework[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Nope. No version of the .NET Framework is going to compile to a natively lower version. See Working with Multiple Versions of the .NET Framework[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
If you read the info behind that link, you would know it IS possible to compile 1.0 at a 1.1 framework. In VS, go to your project properties, and select 1.0 at 'supported runtimes'. Althought you said it wasn't possible, you helped me well. :) Cheers, Theo
This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Dave Kreskowiak wrote: This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. I don't see the distinction you're trying to make.
This doesn't change the code generated by the compiler at all. What you're actually doing is changing a configuration option in the applications .config file that say that this application CAN run under the 1.0 Framework. There is nothing guaranteeing that though. The .NET Runtime is trusting YOU to tell it that it is OK to run this particular 1.1 code under the 1.0 Framework. It's taking YOUR WORD that the code doesn't use anything that is 1.1 specific. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome