How to convert a non-core csproj to VS2017 format

Julian picture Julian · Feb 17, 2017 · Viewed 8.6k times · Source

I have two projects in VS2015

  1. One .NET Core (project.json, xproj)
  2. One regular .NET csproj

When I open project 1 with VS2017, it nicely migrates to the new csproj format.

Project 2 works in VS2017, but I like to convert/migrate/update this csproj to the new project file format to benefit from the new csproj features (multi target, no large file list, readable csproj, NuSpec info in csproj etc)

How could I do that? I cannot find an option in VS2017 for that.

Using: VS2017 RTM

Answer

SkyrawrCode picture SkyrawrCode · Mar 14, 2017

It may be worth your time to look at these. It looks like it can't be done for more complex project types but console and libraries appear to be upgradable http://www.natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/

https://github.com/NickCraver/PerfBenchmarks/commit/53c3013b1774056363dcab867bceb1b89ce9592c

And regarding the addition of the more complex sdk types you can watch this github issue.

https://github.com/dotnet/sdk/issues/491