运行 .NET 4.0 API 的 .NET 3.5 应用程序
我们有一些基于 .net 3.5 框架的应用程序。我们有一个分布式的代码 API(用于可重用访问中央数据库信息的库)。我们已将网站的这一部分移至 .net 4.0 框架。
我的问题是;我们如何才能使 API 可供尚未迁移到 .net 4.0 框架的应用程序使用?大家需要的新功能都是在4.0框架下的。
我应该只创建两个 API 吗?
对于该问题留下的评论;如果没有什么建设性的内容,请不要发帖。
我不确定关于自定义 API 的困惑还不清楚。
我们非常熟悉应用程序的编写,并且正在迁移到 4.0 框架。对于公司(及其客户)来说,每次出现新框架时都必须重新编写/更新应用程序,成本可能会很高。
We have a few applications that are under the .net 3.5 framework. We have a code API (library for reusable access to central database information) that is distributed. We have moved that piece of the site to that .net 4.0 framework.
My question is; how can we make the api available to the applications that are not in a position to migrate to the .net 4.0 framework yet? The new functionality that needed by everyone is under the 4.0 framework.
Should I just create two APIs?
To the comments left on the question; if you don't have anything constructive, please don't post.
I'm not sure what the confusion about a custom API is not clear.
We are very familier with writing applications, and are in the process of migrating to the 4.0 framework. It can be costly for a company (and it's clients) to have to re-write/update an application every time a new framework comes out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
恐怕您必须使用 .NET 4 框架重新编译旧应用程序,以便它们能够与您的新 API 配合使用。
或者您可以针对 3.5 框架重新编译 API(如果可能)。
I am afraid you'll have to recompile the older applications with the .NET 4 framework for them to work with your new API.
Or you can re-compile your API (If possible) targeting the 3.5 framework.
只需在 .NET 4 中重新编译 - 最佳解决方案。
Just recompile in .NET 4 - best solution.
只要您没有在配置文件中明确定位 3.5 框架,并且没有使用任何 .NET 4.0 中出现的功能,您应该可以按原样使用。
As long as you haven't explicitly targeted the 3.5 framework in your configuration files, and you haven't used any features which broke in .NET 4.0, you should be good to go as is.