VS2017 Live unit testing in Parallels Desktop VM

TLDR; change the project location on disk from shared mac (my documents) to local windows (c:-drive) to prevent Live unittesting from crashing

Live unit testing has been introduced in 2016 (visual studio blog) and got my attention recently by a tweet from Iris Classon. 

Since I’m on a Mac my way of working with Visual Studio is with virtualisation. I have Windows 10 running in Parallels Desktop and installed Visual Studio 2017 enterprise. The enterprise version contains the live unit testing feature. If you don’t see it check the version of VS2017 you’re running.

After creating a simple solution with some unit tests I started the live unit testing feature. This can be done in the menu Test > Live unit testing > Start. The output window showed it was compiling and then the thing crashed … Microsoft.CodeAnalysis.LiveUnitTesting has stopped working …

I’ve noticed strange behaviour before when the projects are located in the my documents folder. This is the default location for visual studio projects. In Parallels this location is mapped to the documents folder of the Mac user on the host machine. Windows 10 sees this as a network / mapped drive location and does not trust it by default.

I moved the solution to the local c:-drive and got live unit testing to work without problems. Loving it already. Got to agree with Iris about this one.

About erictummers

My work as a recruited developer changes almost every month. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s