C#/.NET Versioning
-
Sorry, this would probably be better asked in the .NET Framework forum, but I get better responses in this one. My C# application, compiled with VS.NET 2002 Pro, which uses the .NET Framework version 1.0.xxx, runs perfectly on a machine with the .NET Framework version 1.0.xxx. However, when this program is required to run under a more recent version of the .NET Framework, I notice different functionality in certain areas of the application. The code simply cannot be anymore straightforward, it works on the same .NET version I compiled it under. My question is, if I compile this same code with VS.NET 2003, or even 2005, will the application run PROPERLY when it is running under 1.1.xxx or newer? Could there be another cause...like I said before, it runs perfect under the older version of the .NET Framework, but not so much under more recent versions. I'd appreciate the help on this...
-
Sorry, this would probably be better asked in the .NET Framework forum, but I get better responses in this one. My C# application, compiled with VS.NET 2002 Pro, which uses the .NET Framework version 1.0.xxx, runs perfectly on a machine with the .NET Framework version 1.0.xxx. However, when this program is required to run under a more recent version of the .NET Framework, I notice different functionality in certain areas of the application. The code simply cannot be anymore straightforward, it works on the same .NET version I compiled it under. My question is, if I compile this same code with VS.NET 2003, or even 2005, will the application run PROPERLY when it is running under 1.1.xxx or newer? Could there be another cause...like I said before, it runs perfect under the older version of the .NET Framework, but not so much under more recent versions. I'd appreciate the help on this...
.NET versions can be installed side-by-side; if you want to use the 1.0.xxx version, specify this in the configuration file for your assembly. Search MSDN if you need an example. .NET 1.1 breaks a few 1.0 things, mostly security and remoting stuff though. If your code is as simple as you say, post some code that works differently on 1.1. Judah Himango
-
Sorry, this would probably be better asked in the .NET Framework forum, but I get better responses in this one. My C# application, compiled with VS.NET 2002 Pro, which uses the .NET Framework version 1.0.xxx, runs perfectly on a machine with the .NET Framework version 1.0.xxx. However, when this program is required to run under a more recent version of the .NET Framework, I notice different functionality in certain areas of the application. The code simply cannot be anymore straightforward, it works on the same .NET version I compiled it under. My question is, if I compile this same code with VS.NET 2003, or even 2005, will the application run PROPERLY when it is running under 1.1.xxx or newer? Could there be another cause...like I said before, it runs perfect under the older version of the .NET Framework, but not so much under more recent versions. I'd appreciate the help on this...
Extending on what Judah said, look-up the
<supportedRuntime>
configuration element. It's only supported in .NET 1.1 and newer, since anything targeting the 1.0 framework doesn't really have a choice for backward compatibility. There's also a lot of information about side-by-side execution in the "Programming Topics" section in the .NET Framework SDK I encourage you to read. I'd give you a link, but unfortunately I'm having connection problems to certain servers. Go figure. It's not hard finding anyway.Software Design Engineer Developer Division Sustained Engineering, Microsoft My Articles