.Net 2.0 compatability with 1.1


J

Joshua Ellul

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
 
Ad

Advertisements

H

Huihong

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
 
J

Joshua Ellul

Hi Huihong,

Thanks for your reply. Where should this file be placed? In source? or in
the application folder?

Josh
 
H

Huihong

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
 
J

Joshua Ellul

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
 
Ad

Advertisements

H

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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top