简体   繁体   English

带有.NET标准库的现有MVC Web应用程序,IDE错误

[英]Existing MVC Web Application with .NET standard library, IDE errors

I converted one of our commonly used libraries to .NET standard 2.0 for mobile application use as well as use in existing applications. 我将其中一个常用的库转换为.NET标准2.0,以供移动应用程序使用以及在现有应用程序中使用。

Using this library in an existing Mvc application (4.7.1 Framework) it builds and runs successfully but the Visual Studio IDE reports a list of build errors for the controller classes around not being able to find elements of the library. 使用现有Mvc应用程序(4.7.1 Framework)中的该库,它可以成功构建并运行,但是Visual Studio IDE会为无法找到该库元素的控制器类报告生成错误列表。 The using clause of this library is also greyed out in the controller classes. 该库的using子句在控制器类中也显示为灰色。

Is there an easy way to resolve this? 有解决此问题的简便方法吗?

从MVC 5.2.3升级到5.2.6的问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用.NET标准库的ASP.NET Web应用程序 - ASP.NET Web Application Using .NET Standard Library .NET标准库的ASP.NET Core 2 Web应用程序参考 - ASP.NET Core 2 Web Application Reference to .NET Standard Library .NET Framework 4.6.1应用程序具有引用.NET Standard 1.4类库的错误 - .NET Framework 4.6.1 application has errors referencing .NET Standard 1.4 class library ASP net core MVC - 在库中启动 Web 应用程序 - ASP net core MVC - Start Web application in a library 类库参考在Asp.net 5 MVC 6 Web应用程序中不起作用 - Class library reference is not working in Asp.net 5 mvc 6 web application .NET 标准类库中的 System.Web - System.Web in .NET Standard Class Library 如何在 .net 标准库中使用应用洞察? - How to use application insights in .net standard library? 如何将Web API添加到现有的ASP.NET MVC(5)Web应用程序项目? - How to add Web API to an existing ASP.NET MVC (5) Web Application project? 如何将 web api 添加到现有的 asp.net mvc core 6 web 应用程序 - How do i add a web api to an existing asp.net mvc core 6 web application 在标准ASP.Net Web应用程序(非MVC)中正确实现SignalR - Proper implementation of SignalR in a standard ASP.Net web application (Non-MVC)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM