2010-11-20 6 views
0

私はVS2003 ASP.NET Webアプリケーションを持っていると私は、ビルドを実行する際に/それがコンパイル、デバッグモードでソリューションを再構築して、エラーなしで完全にVS2003エラーながら/リリースモードでソリューションを再構築

を構築するが、私が変更されたとき私が参照している様々なdllのコンパイルエラーの後になっている、ソリューションのビルドまたは再構築ソリューションをリリースして実行しようとするモード。

私は(あなたがusingディレクティブまたはアセンブリ参照が不足している?)型または名前空間名「XYZ」が見つかりませんでした一般的なXYZと

を名前空間の名前に置き換えられてい

をすべての私の参照は正しいので、エラーなしでデバッグモードでコンパイルすることができます。

私のOSは、私はリリースモードとこの問題の回避策でこのエラーを取得していますなぜ、誰もが知っているWindows Vistaの

のですか?続き

iは、ファイル名を変更した出力ウィンドウ

からのサンプルである、私は実際のエラー

------ 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. 
+0

参照をロードする際のエラーを示す出力ウィンドウには何かがありますか? –

+0

出力ウィンドウから抜粋を追加しました。 – N30

+1

定数にDEBUGまたはRELEASEの '#if'ステートメントがありますか?おそらく、ビルド構成に基づいてステートメントを使用しているものが無効になっている可能性があります。 –

答えて

1

を変更していない私は、ソリューションを閉じて、ソリューションに関連した.suoファイルを削除し、開きました私はデバッグモードとリリースモードの両方でコンパイルすることができました。

解決策の変更はありません。

ありがとうございます。

関連する問題