Microsoft Universal Apps and Unit Testing, trouble with AppModel version

后端 未结 2 1643
栀梦
栀梦 2021-02-12 14:38

I started a new Solution to try the Universal Apps. To test my code I want to add a unit test project (windows phone 8.1), but if I do so I get this error message when I start a

相关标签:
2条回答
  • 2021-02-12 15:11

    It seems like this is not a problem of Visual Studio, but rather Resharper or some other tools, which want to make unit testing easier.

    In my example, see this context menu screenshot. I always used the "run unit tests" command in the lower part, which resulted in the error message. Using the upper ones starts the emulator fine and runs the unit tests on the platform.

    0 讨论(0)
  • 2021-02-12 15:17

    On Universal Windows App msdn site I see following note:

    Note These samples require Windows 8.1 and Microsoft Visual Studio 2013 with Microsoft Visual Studio 2013 Update 2 or later. They don't compile in Microsoft Visual Studio 2012 for Windows 8

    I checked my own current Visual Studio Installation 'About' page and see that I have VST 2013 Update 1. Maybe you have to explicitly update your Visual Studio version, it doesn't seem to happen by default.

    I also checked the Microsoft Visual Studio 2013 Update 2 download page and that explicitly states

    It includes tools for Windows Phone 8.1 development.

    0 讨论(0)
提交回复
热议问题