0
我有VS2003 ASP.NET Web應用程序,當我進行構建/重建它編譯調試模式下的解決方案,並沒有錯誤完美打造,VS2003錯誤而執行編譯/重建解決方案
,但是當我改變發佈模式並嘗試執行構建解決方案或重建解決方案我正在跟蹤我引用的各種dll的編譯錯誤。
我更換了通用XYZ名字空間
類型或命名空間名稱「XYZ」無法找到的名稱(是否缺少using指令或程序集引用?)
我的所有引用都是正確的,我可以在調試模式下編譯而不出錯。
我的操作系統是Windows Vista中
沒有人知道爲什麼我收到的發行模式,此錯誤和可能的解決此問題的?
以下是從輸出窗口樣品
我已更改的文件名,我並沒有改變實際的錯誤
------ Rebuild All started: Project: XYZ, Configuration: Release .NET ------
Preparing resources...
Updating references...
Performing main compilation...
C:\xyz\a.cs(4,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
C:\xyz\a.cs(5,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
C:\xyz\a.cs(4,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
C:\xyz\a.cs(5,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
C:\xyz\a.cs(4,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
C:\xyz\a.cs(4,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
c:\xyz\b.cs(4,7): error CS0246: error CS0246: The type or namespace name 'Globals' could not be found (are you missing a using directive or an assembly reference?)
c:\xyz\c.cs(5,7): error CS0246: The type or namespace name 'ToolLib' could not be found (are you missing a using directive or an assembly reference?)
c:\xyz\d.cs(4,7): error CS0246: The type or namespace name 'Logger' could not be found (are you missing a using directive or an assembly reference?)
..........
and so on
----------
Build complete -- 26 errors, 0 warnings
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is missing.
輸出窗口中是否有任何內容顯示加載參考的錯誤? – 2010-11-20 01:15:08
我已經添加了輸出窗口的摘錄。 – N30 2010-11-20 01:22:00
你有一個'#if'語句,其中包含常量DEBUG或RELEASE。也許某些使用語句會根據您的構建配置而被禁用。 – 2010-11-20 01:24:27