[英]c# generated code refers to assembly removed from project
I am getting the following message when compiling my project. 编译项目时出现以下消息。
The environment is Visual Studio Pro 2017. .Net Framework 4.6 环境为Visual Studio Pro2017。.NetFramework 4.6
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'NAME' does not
exist in the namespace 'FILE' (are you missing an assembly reference?)
Source Error:
Line 27: using One.Assembly;
Line 28: using Two.Assembly;
Line 29: using NAME.FILE;
Source File: C:\LocalDisk\tempFile.cs Line: 29
It is generating a temporary file which refers to an assembly 'NAME.FILE' that has been removed from the solution. 它正在生成一个临时文件,该临时文件引用了已从解决方案中删除的程序集“ NAME.FILE”。
让我描述这种情况,AAA.dll依赖于BBB.dll,而BBB.dll依赖于CCC.dll,您拥有BBB.dll,但是您也需要向CCC.dll添加一个引用,而AAA.dll则不需要直接引用CCC.dll,但是您仍然需要它。
原来这是对web.config文件中文件的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.