简体   繁体   English

Web项目已在Visual Studio 2017中成功构建,没有任何错误,但仍显示为错误

[英]Web Project is Build successfully in Visual Studio 2017 without any error but still it showing as error

I am Using Visual Studio 2017 as IDE for developing asp.net mvc based web application. 我正在使用Visual Studio 2017作为IDE来开发基于ASP.NET MVC的Web应用程序。 In asp.net Project i have referrenced the class library application for three tier architecture. 在asp.net Project中,我引用了三层体系结构的类库应用程序。 When I build the solution, it builds successfully and could ran also. 当我构建解决方案时,它可以成功构建并且也可以运行。 But when I see my project code it shows like "are you missing directive or an assembly reference error" in many places. 但是,当我看到我的项目代码时,它在许多地方显示为“您是否丢失指令或程序集引用错误”。 Because of that code intelligence is not working. 因此,代码智能无法正常工作。 Even I have to do build for single code change to check whether any of the compilation error exists in my code. 即使我必须为单个代码更改进行构建,以检查我的代码中是否存在任何编译错误。

I have did the following, but not helped any how, 我做了以下工作,但没有任何帮助,

  1. Clean solution --> And rebuild the solution 清洁解决方案->并重建解决方案
  2. Restart the Visual studio and rebuild the solution 重新启动Visual Studio并重建解决方案
  3. Removing the .suo file in solution directory 删除解决方案目录中的.suo文件

Thanks in Advance..! 提前致谢..!

I resolved this issue by reinstalling the EntityFramework library to all the project in the solution. 我通过将EntityFramework库重新安装到解决方案中的所有项目来解决此问题。 After that it works fine. 之后,它工作正常。

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

相关问题 Xamarin传统Android项目在Visual Studio 2017上构建但出现错误 - Xamarin Traditional Android Project Build On Visual Studio 2017 But Have Error Xamarin IOS生成Visual Studio 2017中的错误 - Xamarin IOS build error in visual studio 2017 Visual Studio 2017 安装项目错误 2727 - Visual Studio 2017 Setup Project error 2727 Visual Studio 2017安装程序项目未显示任何依赖项 - Visual Studio 2017 Installer Project not showing any dependencies 尝试在Visual Studio 2017中构建UWP应用时出错 - Error when attempting to build a UWP app in Visual Studio 2017 Visual Studio 2017:项目已过期并出现错误 (0x80004005) - Visual Studio 2017: Project is out of date with error (0x80004005) 在Visual Studio 2017社区上打开项目/解决方案时出错 - Error opening a project/solution on Visual Studio 2017 Community Visual Studio 2017 Intellisense错误 - Visual studio 2017 Intellisense error 创建新项目(.net Core Web)Visual Studio 2017错误:字符串未终止。 路径TemplateInfo [40] .Tags.auth - Creating new project (.net Core Web) Visual Studio 2017 Error: Unterminated string. Path TemplateInfo[40].Tags.auth 在Visual Studio 2019中发布DacPac项目时出错(在Visual Studio 2017中有效) - Error publishing DacPac project in Visual Studio 2019 (works in Visual Studio 2017)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM