Saya mendapatkan kesalahan berikut dalam proyek C # visual studio saya:
Tipe atau nama namespace 'VisualStudio' tidak ada di namespace 'Microsoft' (apakah Anda kehilangan referensi perakitan?)
Saya juga mencoba mencari file microsoft.dll tetapi tidak bisa mendapatkan referensi. Apakah saya mencari DLL yang salah?
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Kya.MsFx.Services.Swiper;
namespace Kya.MsFx.Devices.Swiper.Test
{
[TestClass]
public class SwiperWindowTest
{
private SwiperWebServiceHost m_SwiperWS = null;
/// <summary>
/// start web service on a separate thread, so tests
/// can be executed withut blocking the application thread
/// </summary>
[ClassInitialize]
public void SetupSwiperTests() {
m_SwiperWS = SwiperWebServiceHost.StartService();
}
/// <summary>
/// Stop service started during class initialize and kill the thread
/// </summary>
[ClassCleanup]
public void CleanupSwiperTests() {
m_SwiperWS.Stop();
}
/// <summary>
/// simulate init, swipe, clear operations
/// </summary>
[TestMethod]
public void TestSwiperService()
{
MessageBox.Show("test");
}
}
}
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
?