Move project.lock.json during migration

Closes #4753
This commit is contained in:
Jeff Kluge 2016-11-23 09:44:38 -08:00
parent 04c5d39c03
commit 2205a8577c
5 changed files with 67352 additions and 3 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -149,8 +149,10 @@ namespace Microsoft.DotNet.Tools.Migrate
var movableFiles = new DirectoryInfo(projectDirectory)
.EnumerateFiles()
.Where(f => f.Name == Project.FileName || f.Extension == ".xproj" ||
f.FullName.EndsWith(".xproj.user"));
.Where(f => f.Name == Project.FileName
|| f.Extension == ".xproj"
|| f.FullName.EndsWith(".xproj.user")
|| f.FullName.EndsWith(".lock.json"));
foreach (var movableFile in movableFiles)
{

View file

@ -84,7 +84,7 @@ namespace Microsoft.DotNet.Migration.Tests
{
var catalog = new Dictionary<string, string>();
var patterns = new [] { "global.json", "project.json", "*.xproj", "*.xproj.user" };
var patterns = new [] { "global.json", "project.json", "project.lock.json", "*.xproj", "*.xproj.user" };
foreach (var pattern in patterns)
{