[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Porting a DLL from .Net 1.1 to .Net 2.0

Hello guys

We are currently moving from .Net 1.1 to .Net 2.0. We are using an external DLL provided by a hardware supplier. This DLL is written on .Net 1.1. I now want to port it to .Net 2.0 but I don't have source codes so I cannot recompile it (I tried decompiling but the generated code won't compile). Is there a tool or something that can directly port the DLL to 2.0 so that it is all .Net 2.0 based?

TheAvenger
0
TheAvenger
Asked:
TheAvenger
3 Solutions
 
NicoCommented:
Why would you want to port it?

I don't think using a .NET 1.1 DLL should give you any major problems; heck, the .NET framework 2.0 itself uses several 1.1 DLL's...
0
 
existenz2Commented:
You can use .NET 1.1 dlls in 2.0 without very much problems, so I wouldnt bother converting it if I was you, especially since it's a third party component.
0
 
TheAvengerAuthor Commented:
Can I use it on a machine where only .Net 2.0 is installed?
0
 
pgloorCommented:
It depends on your DLL. You need to test your DLL.

When the application is started up the CLR looks at the .NET Framework version recorded in the application and tries to run the application on the version of the .NET Framework that the application was compiled with. If that version is not installed on the machine, the CLR will attempt to start the application on the latest .NET Framework and CLR.

For example, an application compiled for .NET Framework 1.1 running on a machine with only the .NET Framework 2.0 will be rolled forward to run on the .NET Framework 2.0.

However, if your DLL contains code specific to .NET 1.1 it will fail on .NET 2.0. For example, DataAdapterException in System.Data of .NET 1.1 has been renamed to DbProviderException System.Data of .NET 2.0.

For more detailed information read this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/netfxcompat.asp

And this MSDN article (published March 2006).
http://msdn.microsoft.com/msdnmag/issues/06/03/CLRInsideOut/default.aspx

Peter
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now