我能做些什么来定位API在.NET 1.1 .NET 4.0(VS2010)的项目? [英] What can I do to target API in .NET 1.1 from .NET 4.0 (VS2010) project?

查看:143
本文介绍了我能做些什么来定位API在.NET 1.1 .NET 4.0(VS2010)的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的3D使用的第三方库在.NET 4.0中的C#.NET 4.0的程序,现在有人问我的目标,只有在.NET 1.1


$ B有一个API 3D-党纲$ b

我忽略了以前的一些讨论,告诉它是不可能的:





这是奇怪的,我不能从.NET(4.0)acsess以前的.NET。



文章:





告诉NET 1.1


在这里是如何利用最新的IDE与.NET 1.1
应用程序一起工作。




它是适用于VS2010(和VS2012)?



什么是目标API在.NET 1.1 .NET 4.0(VS2010)项目?结果
进程间通信的可能性?



更新:结果
@HighCore,结果
,这是提供接入一个程序(终端)西方交易证券交易所要求的登录名和密码键对获取数据在互联网上并提交订单(购买,出售等)。结果
我的程序algotrading机器人在.NET 4.0中,但终端本质上是也可以随时从Windows / GUI结果
手动使用我不能去证券交易所直接访问或使用程序和库插手提供吧:)或者说:(



UPDATE2:结果
我甚至不觉得.NET 1.1在我的Windows XP SP3机 -
Windows Update不可见得到它。结果
我还记得,我在上面安装了.NET 1.1中的最后一次,我不得不重新安装后VS2005,VS2008,VS2010与Service Pack和所有dependencides ....



这就是我的感觉是,这是必要的前更高版本的安装.NET 1.1?..


解决方案

您不能直接。 1.1在1.0以上版本的CLR运行,这是不是在VS2010 +直接支持。



这是你提到的短暂的要求,我将调查一些形式的建筑/ API边界如果你能compartmentalise 4+ CLR代码中的1.1 API。



我敢肯定,你不能加载CLR 1.1和4.0 CLR到同一过程是这样,也许这需要你有一定的过程的分离。



如果1.1级代码需要使用你的代码,那么你需要重写版本的CLR和机遇是这不是因为在CLR 2.0+ 1.1以上特征的大量琐碎的工作。同样,你需要精确定义了每个侧需求,并适当隔离。这不是VS2010 +会做开箱。


I developed programs in C# .NET 4.0 using 3d-party libraries in .NET 4.0 and now I was asked to target a 3d-party program that has API only in .NET 1.1

I overlooked some previous discussions telling that it is impossible:

This is weird that I cannot acsess previous .NET from a .NET (4.0).

The article:

tells:

"here is how to use the latest IDE to work with a .NET 1.1 applications."

Is it applicable to VS2010 (and VS2012)?

What are the possibilities to target API in .NET 1.1 from .NET 4.0 (VS2010) project?
Inter-process communication?

Update:
@HighCore,
this is a program (terminal) providing access to Western trading stock exchange requiring login and cryptokeys for getting data over the internet and submitting orders (to buy, sell, etc.).
My program is algotrading bot in .NET 4.0 but the terminal is essentially to be also always used manually from Windows/GUI
I cannot get direct access to stock exchange or meddle with programs and libraries providing it :) or rather :(

Update2:
I do not even find .NET 1.1 on my Windows XP SP3 machine.
Windows update doesn't seen to get it.
I also recall that the last time I installed .NET 1.1 on it I had to reinstall thereafter VS2005, VS2008, VS2010 with Service Packs and all dependencides....

That is, my feeling is that it is necessary to install .NET 1.1 before later versions?..

解决方案

You can't directly. 1.1 runs on the 1.0+ CLR and this is not supported directly in VS2010+.

From the brief requirements you've mentioned, I would investigate some form of architectural/API boundary to compartmentalise the 1.1 API within 4+ CLR code if you can.

I'm pretty sure that you can't load the 1.1 CLR and the 4.0 CLR into the same process so, perhaps this will need you have some process separation.

If the 1.1 level code needs use your code, then you need to rewrite a version for that CLR and chances are it's not a trivial task due the great number of features in clr 2.0+ above 1.1. Again you need to define precisely what each side needs and isolate them appropriately. This is not something VS2010+ will do out of the box.

这篇关于我能做些什么来定位API在.NET 1.1 .NET 4.0(VS2010)的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆