.Net框架兼容性在不同版本下运行的项目 [英] .Net framework compatibility for projects running under diffrent versions
问题描述
Hi Team
我们有在.net3.5版本框架下运行的遗留项目。
创建了另一个解决方案并添加了web api网站(在4.6.1 .net framework + mvc5下运行)将访问遗留项目dll或库(在.net 3.5下运行)。
我添加了9个dll引用(在.net 3.5下运行)到web api网站(在4.6.1 .net框架下运行
+ mvc)。
在构建时并重建web api 网站 ,在两种情况下都取得了成功。
重建时整个 解决方案
它给出了错误,一个dll无法在9个dll中正确构建。 每次获得与该项目dll相关的不同数量的错误。
在.CS文件中,它没有显示任何对dll有误的错误。
但是在错误列表中显示
严重程度
| 代码
| 描述
| 项目
| 文件
| 行
| 抑制状态
|
错误
| CS0234
| 命名空间中不存在类型或命名空间名称"实体" 'AdminTools.Common'(你错过了汇编参考吗?)
| C:\dev\AdminTools \AdminTools \Src \GenericToolsWebApi \Source \ UdwBaseWebServiceWrapper.cs
| < span style ="font-size:x-small"> 6
| 不适用
|
嗨朋友,
欢迎来到MSDN论坛。
看来你的问题是关于ASP.NET开发的,因为我们的论坛是讨论VS IDE,请重定向到这个合适的论坛:
https://forums.asp.net/ 并开始一个新的主题以获得更好的支持,感谢您的理解。
最好的问候,
萨拉跨度>
Hi Team
we have legacy projects which were running under .net3.5 version framework.
Created another solution and added web api website(Running under 4.6.1 .net framework+mvc5) which will access legacy project dlls or libraries (running under .net 3.5).
I have added 9 dll references(running under .net 3.5) to web api website (Running under 4.6.1 .net framework
+mvc).
While building and rebuilding web api website,it got succeeded in both the cases.
While rebuilding the entire solution it is giving errors,one dll not building properly out of 9 dlls. Every time getting different number of errors related to that project dll.
In .CS files it is not showing any error realted to dll.
But in error list it is showing
Severity |
Code |
Description |
Project |
File |
Line |
Suppression State |
Error |
CS0234 |
The type or namespace name 'Entities' does not exist in the namespace 'AdminTools.Common' (are you missing an assembly reference?) |
GenericToolsMvcWeb |
C:\dev\AdminTools\AdminTools\Src\GenericToolsWebApi\Source\UdwBaseWebServiceWrapper.cs |
6 |
N/A |
Hi friend,
Welcome to the MSDN forum.
It seems your issue is about the ASP.NET development and since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.asp.net/ and start a new thread for a better support, thank you for your understanding.
Best regards,
Sara
这篇关于.Net框架兼容性在不同版本下运行的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!