I have a problem running a test when referencing a metro style app. When I run the test I get -
The process has no package identity. (Exception from HRESULT: 0x80073D54)
This is similar to the problem outlined in this thread http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/15d98c5b-2aaf-4ecf-9d62-120b91a22966/ where hamling-ling was also getting the error "The process has no package identity." when attempting to run his test from the command line.
But in my case I am trying to run an NUnit test from within a Resharper test window.
So similar to hamling-ling -
1) I have a class library (A.dll) that accesses a resw file.
2) I also have a test project (produces TestA.dll) to test the A.dll.
The exception is occurring on the constructor of the ResourceLoader() -
private ResourceLoader _resourceLoader = new ResourceLoader();
I tried creating the store package
(right-click on the test project > Store > Create App Packages... > Local)
Then running certutil on the MYCOMPANY.Tests_220.127.116.11_AnyCPU.cer certificate file that was created in the package -
certutil -addstore root C:\lsl\ehuna\MYTEAM\Dev\Source\Tests\MYCOMPANY.Tests\AppPackages\MYCOMPANY.Tests_18.104.22.168_AnyCPU_Test\MYCOMPANY.Tests_22.214.171.124_AnyCPU.cer
but that did not help.
I was hoping someone testing Windows 8 metro-style apps and using the Resharper 7.1 test runner in VS 2012 ran into the same issue and figured it out.
Does anyone know what I need to do to get this working?
I'm using -
Windows 8 Pro
Visual Studio 2012 Ultimate
I cross posted on the Microsoft forums - http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/449635cd-6aad-4d89-95a7-be7444d48f98 - since there's some overlap on the supported products.