簡體   English   中英

在發布模式下執行構建/重建解決方案時,VS2003錯誤

[英]VS2003 error while performing build/rebuild solution in Release Mode

我有VS2003 ASP.NET Web應用程序,當我在調試模式下執行構建/重建解決方案時,它可以編譯並完美構建而沒有錯誤,

但是,當我將模式更改為“發布”並嘗試執行“生成解決方案”或“重建解決方案”時,我正在跟蹤我所引用的各種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.

我關閉了解決方案,並刪除了與解決方案關聯的.suo文件,然后再次打開了解決方案,並且能夠在調試和發布模式下進行編譯。

我沒有更改解決方案中的其他任何內容。

謝謝大家的評論。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM