我安裝了Windows 7的新構建機器上的SDK後,我從我們的單元測試項目錯誤:Microsoft Windows SDK for Windows 7是否包含用於MS單元測試的庫?
DsHelperTest.cs(2,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
SKMTest.cs(3,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
UserTest.cs(2,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
DsHelperTest.cs(30,11): error CS0246: The type or namespace name 'TestContext' could not be found (are you missing a using directive or an assembly reference?)
DsHelperTest.cs(42,10): error CS0246: The type or namespace name 'TestContext' could not be found (are you missing a using directive or an assembly reference?)
DsHelperTest.cs(60,40): error CS0118: 'TestSystemSoftware.DsHelperTest.TestContext' is a 'property' but is used like a 'type'
SKMTest.cs(23,17): error CS0246: The type or namespace name 'TestContext' could not be found (are you missing a using directive or an assembly reference?)
什麼想法?需要安裝另一個庫包?我們不打算在該生成機器上安裝Visual Studio 2008。
感謝,
單元測試是Visual Studio的一項功能。您將不得不將其部署到構建服務器。複製組件是不允許的。 – 2010-09-09 18:41:57