Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Add support to migrate a directory. - #4254

Merged
Sridhar-MS merged 2 commits into
rel/1.0.0from
sridhar-ms/migrate-directory
Sep 29, 2016
Merged

Sridhar-MS merged 2 commits into
rel/1.0.0from
sridhar-ms/migrate-directory

Conversation

@Sridhar-MS

Copy link
Copy Markdown
  • Given a directory migrate all the project.jsons in it recursively.
  • Remove '-p/--project' option. Instead directly pass a directory or project.json as argument.
  • Add tests.

Fixes 1 and 3 in #4167

cc @brthor @livarcocc @eerhardt

- Given a directory migrate all the project.jsons in it recursively.
- Remove '-p/--project' option. Instead directly pass a directory or project.json as argument.
- Add tests.
new ProjectMigrator().Migrate(migrationSettings, _skipProjectReferences);
foreach (var project in projectsToMigrate)
{
Console.WriteLine($"START migrating project {project}..");

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

FixUpProjectJsons(projectDirectory);

MigrateCommand.Run(new [] { "-p", Path.Combine(projectDirectory, projectName), "--skip-project-references" }).Should().Be(0);
MigrateCommand.Run(new [] { Path.Combine(projectDirectory, projectName), "--skip-project-references" }).Should().Be(0);

This comment was marked as spam.

This comment was marked as spam.

}
else
{
throw new Exception($"Invalid project argument - {projectArg}");

This comment was marked as spam.

This comment was marked as spam.

@eerhardt

Copy link
Copy Markdown
Member

:shipit:

@Sridhar-MS
Sridhar-MS force-pushed the sridhar-ms/migrate-directory branch from ff59f55 to a50708a Compare September 28, 2016 16:00
@Sridhar-MS
Sridhar-MS merged commit 98231a6 into rel/1.0.0 Sep 29, 2016
@TheRealPiotrP
TheRealPiotrP deleted the sridhar-ms/migrate-directory branch January 24, 2017 23:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants