|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.Net 2.0 compatability with 1.1Hi There,
I want to write some code that will work both with .NET 2.0 as well as on ..NET 1.1 frameworks. Should my code be written in 2.0 or 1.1? I tried writing an application with 1.1 however on a machine with 2.0 installed the application displayed a window stating that it requires the 1.1 framework. What can I do? Thanks Josh You will definitely need to develop in 1.1 in order to support both 1.1
and 2.0. To force your app to run under .NET 2.0, create a config file, e.g., your.exe.config, that contians something as follows: You can modify it to both 1.1 and 2.0 are supported. <?xml version ="1.0"?> <configuration> <startup> <supportedRuntime version="v2.0.50727" safemode="true"/> <requiredRuntime version="v2.0.50727" safemode="true"/> </startup> </configuration> Huihong ..NET Native Compiler for best startup time and best protection agianst reverse engineering http://www.remotesoft.com Joshua Ellul wrote: Show quote > Hi There, > > I want to write some code that will work both with .NET 2.0 as well as on > .NET 1.1 frameworks. Should my code be written in 2.0 or 1.1? > > I tried writing an application with 1.1 however on a machine with 2.0 > installed the application displayed a window stating that it requires the > 1.1 framework. What can I do? > > Thanks Josh Hi Huihong,
Thanks for your reply. Where should this file be placed? In source? or in the application folder? Josh Show quote "Huihong" <huisi***@gmail.com> wrote in message news:1145464523.428754.314360@t31g2000cwb.googlegroups.com... > You will definitely need to develop in 1.1 in order to support both 1.1 > and 2.0. To force your app to run under .NET 2.0, create a config file, > e.g., your.exe.config, that contians something as follows: > > You can modify it to both 1.1 and 2.0 are supported. > > <?xml version ="1.0"?> > <configuration> > <startup> > <supportedRuntime version="v2.0.50727" safemode="true"/> > <requiredRuntime version="v2.0.50727" safemode="true"/> > </startup> > </configuration> > > Huihong > .NET Native Compiler for best startup time and best protection agianst > reverse engineering > http://www.remotesoft.com > > Joshua Ellul wrote: >> Hi There, >> >> I want to write some code that will work both with .NET 2.0 as well as on >> .NET 1.1 frameworks. Should my code be written in 2.0 or 1.1? >> >> I tried writing an application with 1.1 however on a machine with 2.0 >> installed the application displayed a window stating that it requires the >> 1.1 framework. What can I do? >> >> Thanks Josh > Josh,
In the same dir as your exe. If your exe is named as WindowsApplication1.exe, you create a file called WindowsApplication1.exe.config You can play with how to support 1.1 and 2.0 at the same time, perhaps something like the following: <?xml version ="1.0"?> <configuration> <startup> <supportedRuntime version="v2.0.50727" safemode="true"/> <requiredRuntime version="v1.1.4322" safemode="true"/> </startup> </configuration> Basically, you tell the runtime to load 2.0 if present, but it requires 1.1, ... By the way, out native compiler can generate a package that runs even without .NET Framework. You simply xcopy the files, and it runs without further installation, can be directly from a CD. Huihong Thanks for your help.
Hmm your product is interesting... do you have a link to your site so I can read more on this... perhaps I could use it in future products. Thanks, Josh Show quote "Huihong" <huisi***@gmail.com> wrote in message news:1145471563.128583.282090@g10g2000cwb.googlegroups.com... > Josh, > > In the same dir as your exe. If your exe is named as > WindowsApplication1.exe, you create a file called > WindowsApplication1.exe.config > > You can play with how to support 1.1 and 2.0 at the same time, perhaps > something like the following: > > <?xml version ="1.0"?> > <configuration> > <startup> > <supportedRuntime version="v2.0.50727" safemode="true"/> > <requiredRuntime version="v1.1.4322" safemode="true"/> > </startup> > </configuration> > > Basically, you tell the runtime to load 2.0 if present, but it requires > 1.1, ... > > By the way, out native compiler can generate a package that runs even > without .NET Framework. You simply xcopy the files, and it runs without > further installation, can be directly from a CD. > > Huihong >
http://www.remotesoft.com/linker
With the native compilation feature, you are guaranteed to get: (1) The capability to execute without .NET Framework. (2) The best performance and best startup time. It beats any competitions. (3) Simply the best source code protection, period. All code are in native x86 format. Guaranteed that your code is not able to be reverse engineered. All other products can't achieve this. For more, check out: http://www.remotesoft.com/deprotector Huihong Joshua Ellul wrote: Show quote > Thanks for your help. > > Hmm your product is interesting... do you have a link to your site so I can > read more on this... perhaps I could use it in future products. > > Thanks, > > Josh > > "Huihong" <huisi***@gmail.com> wrote in message > news:1145471563.128583.282090@g10g2000cwb.googlegroups.com... > > Josh, > > > > In the same dir as your exe. If your exe is named as > > WindowsApplication1.exe, you create a file called > > WindowsApplication1.exe.config > > > > You can play with how to support 1.1 and 2.0 at the same time, perhaps > > something like the following: > > > > <?xml version ="1.0"?> > > <configuration> > > <startup> > > <supportedRuntime version="v2.0.50727" safemode="true"/> > > <requiredRuntime version="v1.1.4322" safemode="true"/> > > </startup> > > </configuration> > > > > Basically, you tell the runtime to load 2.0 if present, but it requires > > 1.1, ... > > > > By the way, out native compiler can generate a package that runs even > > without .NET Framework. You simply xcopy the files, and it runs without > > further installation, can be directly from a CD. > > > > Huihong > > |
|||||||||||||||||||||||