自動テストプロジェクトをC#ソリューションに追加し、ビルドサーバーにチェックインしました。
ビルドスクリプトをMSBuild(.NET Framework 3.5)を使用して実行すると、いくつかのエラー(次のような)が発生します。
**cs(2,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
**.cs(21,17): error CS0246: The type or namespace name 'TestContext' could not be found (are you missing a using directive or an assembly reference?)
**.cs(73,10): error CS0246: The type or namespace name 'TestMethod' could not be found (are you missing a using directive or an assembly reference?)
**.cs(73,10): error CS0246: The type or namespace name 'TestMethodAttribute' could not be found (are you missing a using directive or an assembly reference?)
**.cs(14,6): error CS0246: The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?)
**.cs(14,6): error CS0246: The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?)
コンピューターで.NET3.5msbuildを実行すると、正しくビルドされます。
ビルドサーバーには.NET4.0が搭載されておらず、ステップアップすることはできません。違いを引き起こしている可能性のあるものと、テストプロジェクトの構築を成功させるために私ができることを誰かが提案できますか?
ありがとう