Unable to migrate multi-project solution to Asp.net Core 1.1
See original GitHub issueMigration tool does not seem to support multiple project solutions well.
ReciPiBook.Api Message src\ReciPiBook.Api\ReciPiBook.Api.xproj: Failed to migrate XProj project ReciPiBook.Api. ‘dotnet migrate -s -p “C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\src\ReciPiBook.Api” -x “C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\src\ReciPiBook.Api\ReciPiBook.Api.xproj”’ exited with error code 1. src\ReciPiBook.Api\ReciPiBook.Api.xproj: Could not find file ‘C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\src\ReciPiBook.Services\project.json’. Migration failed. src\ReciPiBook.Api\ReciPiBook.Api.xproj: Backing up C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\src\ReciPiBook.Api\ReciPiBook.Api.xproj to C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\Backup\src\ReciPiBook.Api\ReciPiBook.Api.xproj. src\ReciPiBook.Api\project.json: Backing up C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\src\ReciPiBook.Api\project.json to C:\Users\xxx\Documents\Visual Studio 2015\Projects\ReciPiBook2017\ReciPiBookCore\Backup\src\ReciPiBook.Api\project.json.
Steps to reproduce
Clone https://github.com/napalm684/ReciPiBookCore Open in vs2017rc or run migration command
Expected behavior
Migration tools succeed or provide feedback on why it failed/steps to correct.
Actual behavior
Failures without clear reason (see errors above)/unable to even recreate the projects manually nuget packages will install in the projects (ie: Microsoft.AspNetCore.Mvc in the ReciPiBook.Api project) but are not recognized by the compiler.
Environment data
dotnet --info
output:
C:\Users\xxx>dotnet --info .NET Command Line Tools (1.0.0-preview3-004056)
Product Information: Version: 1.0.0-preview3-004056 Commit SHA-1 hash: ccc4968bc3
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:28 (7 by maintainers)
Top GitHub Comments
I got my project working in VS2017RC (finally). Here’s the process I followed:
project.json
). I also installed the “Visual Studio 2015 Tools (Preview 2)” from the .NET Core downloads page page - I’m not sure which order I did these in or if it matters.Update-Package
in the package console.global.json
file and set the SDK version to1.0.0-preview3-004056
(this is the version thatdotnet --info
says I have installed).dotnet migrate
and thendotnet restore
.project.json
and*.xproj
files from the project tree.It even runs on the Mac preview of VS2017RC but none of the
dotnet ef
commands work, they still expect aproject.json
file.I have seen the same issue when migrating a solution to VS 2017 RC: in the solution there are projects A and B, B depends on A. Project A is migrated successfully and its project.json is moved, then when it tries to convert project B, it looks for project A’s project.json, but it’s not there since it was already moved. There are three issues:
Repro: https://github.com/lucabol/FollowTheGuru , open in VS 2017 RC