Calling .NET 2.0 Assemblies in .NET 1.1

I recently developed an internal structure in .NET 2.0, which mainly relates to classes and helpers.

The problem is that I have some .NET 1.1 sites and applications, and I would like to use my infrastructure. I know that I cannot name .NET 2.0 in .NET 1.1, but I have an idea.

If I create another project 2.0 with ComVisible and reference some of my collections 2.0, then recreate my necessary functions only for references to these classes, and in .NET 1.1 call this new assembly ComVisible; can I then use assemblies 2.0 in .NET 1.1?

If this works mostly, I can use it in .NET 1.1, Java Reflection, etc.

Or am I wasting my time?

+3
source share
1 answer

I don’t understand why you want to go through all this effort. There are only two possibilities: either

  • The servers / workstations working with these sites / applications have the .NET Framework 2.0 installed, in which case you can simply redirect these sites / applications to .NET 2.0 and rebuild / reinstall them (which should take all 10 minutes), or

  • The .NET Framework 2.0 is not installed on the servers / workstations, and in this case all your COM efforts are negligible, because the 2.0 assemblies themselves cannot work without the Framework.

"" 2.0 3.5, β„–1, - . , 1.1 2.0, , , , COM.

+1

Source: https://habr.com/ru/post/1727683/


All Articles