2017-10-18 16 views
0

プロジェクトをコンパイルするときに次のメッセージが表示されます。C#生成されたコードがプロジェクトから削除されたアセンブリを参照しています

環境は、Visual Studio Proの2017年の.NET Framework 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 

それは溶液から除去されたアセンブリ「NAME.FILE」を意味し、一時ファイルを生成しています。

答えて

0

AAA.dllはBBB.dllに依存し、BBB.dllはCCC.dllに依存し、BBB.dllを持っていますが、CCC.dllにも参照を追加する必要がありますが、AAA .dllはCCC.dllへの直接参照を必要としませんが、依然として必要です。

0

それは、web.configファイル内のファイルへの参照でした。

関連する問題