How to migrate .NET Core Test projects to VS 2017?

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

VS 2017 provides a new Unit Test project template related to .NET core projects.
image

However, you might already have a test project build with .NET Core 1.0. When migrating existing .NET Core Test projects to VS2017, this process might fail for several reasons.
If it does not work, please check following. To do this, edit project file (.csproj).

image

Then be sure that references to xunit are added as shown below:

image

Last, but not least, ‘OutputType’ must be set to EXE. Sometimes migration process set it to ‘Library’, which is not correct.

image


Posted Jan 12 2017, 04:22 AM by Damir Dobric
Filed under: ,
developers.de is a .Net Community Blog powered by daenet GmbH.