.NET CF UnitTesting with emulator - test run error

Test run error:

Test adapter ('Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a') required to run this test cannot be loaded. Make sure the test adapter is installed correctly. Error: Failed to initialize the host adapter of the smart device.

Actual situation: Known issue "Exceptions in unit tests in secondary threads kill vstesthost"

was solved by adding to C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ VSTestHost.exe.config

following line:

Added Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll to the GAC:

"C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ bin \ gacutil.exe" -i "C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.SmartDevice.UnitTestFramework. dll "

But I still get the error message and cannot run unit tests on the emulator.

Or maybe this is still an unresolved issue in Visual Studio 2008, and should I try other tools / features?

enter image description here

System.IO.FileNotFoundException fix was unhandled

The system cannot find the file.

Source = "Device Connection Manager" :       Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.DownloadPackage(String pwszPackageId)       Microsoft.SmartDevice.Connectivity.FileDeployer.DownloadPackage(ObjectId packageId)       Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.RunConfigDevice.InitializeStreamingWithDevice()       Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.DeviceHostAdapter.initializeInternal()       System.Threading.ThreadHelper.ThreadStart_Context ( )       System.Threading.ExecutionContext.Run(ExecutionContext executeContext, ContextCallback, )       System.Threading.ThreadHelper.ThreadStart() InnerException:

http://img688.imageshack.us/img688/2025/20120808testrunerrorexc.gif

+5
2

: http://social.msdn.microsoft.com/Forums/en/vssmartdevicesvbcs/thread/72fbc539-cf28-4643-b7bf-2ced70018d2e

, , SmartDevice.UnitTestFramework.dll xml VS 2008 VS 2010, .

VS2008

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies

VS2010

 C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies

2 . vstesthost.exe ,

vstesthost.exe
Microsoft.SmartDevice.Connectivity
System.IO.FileNotFoundException

unit test

"The system cannot find the file specified.\r\n"
"Device Connection Manager"
at Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.DownloadPackage(String pwszPackageId)
at Microsoft.SmartDevice.Connectivity.FileDeployer.DownloadPackage(ObjectId packageId)
at Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.RunConfigDevice.InitializeStreamingWithDevice()
at Microsoft.VisualStudio.SmartDevice.TestHostAdapter.DeviceAgent.DeviceHostAdapter.initializeInternal()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
+1

SDK , , , . .

SDK (WM5, WM6.1, WM6.3.5 ..), , , .

, , ( Windows), , ( Windows), .

+1

All Articles