現在、仮想マシン内で C# コードをビルドしようとしています。
コードはローカル コンピューター(Win7、64 ビット、Visual Studio 2008 Prof) で正常にコンパイルされます。
私の仮想マシン(Win7、64 ビット、Visual Studio 2008 Prof) では、同じプロジェクト ファイルが次のエラーでビルドに失敗します。
Solution file error MSB5010: No file format header found.
MSBuild (ローカル コンピューター):
Microsoft (R)-Buildmodul, Version 3.5.30729.5420
[Microsoft .NET Framework, Version 2.0.50727.5456]
MSBuild (仮想マシン):
Microsoft (R)-Buildmodul, Version 3.5.30729.5420
[Microsoft .NET Framework, Version 2.0.50727.5456]
プロジェクト ファイルの先頭は次のようになります。
<empty line>
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = [...]
MSBuild のバージョン出力が正しい限り、私は同じバージョンの MSBuild を使用しています。
しかし、ビルドがローカルではうまくいっているのに、あるマシンでは失敗するのはなぜですか? oO
更新
別のエラーにつながる空の行を削除しました:
Microsoft (R)-Buildmodul, Version 3.5.30729.5420
[Microsoft .NET Framework, Version 2.0.50727.5456]
Copyright (C) Microsoft Corporation 2007. Alle Rechte vorbehalten.
Project.sln(44): Solution file error MSB5008:
Error parsing the solution configuration section in solution file.
The entry "" is invalid.
更新
Visual Studio の言語は重要ですか? 仮想マシンにドイツ語がインストールされている間に、ローカル マシンに英語のインストールを取得しました。