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

Conversation

@Sridhar-MS
Copy link

@Sridhar-MS Sridhar-MS commented Sep 22, 2016

Fixes item 2 and 5 in https://github.com/dotnet/cli/issues/4167

  • Given a project migrate all the project references recursively.
  • Add a boolean option '--skip-project-references' to skip migrating P2P references. By default P2P references are migrated.
  • Remove the '--output' since it is not used heavily and makes migrating multiple projects easier.
  • Add tests

cc @brthor @eerhardt @livarcocc

var projectFile = ((ProjectDescription)export.Library).Project.ProjectFilePath;
var projectDir = Path.GetDirectoryName(projectFile);

if (_migratedProjects.Contains(projectDir))

This comment was marked as spam.

This comment was marked as spam.

Queue<MigrationSettings> settingsQueue = new Queue<MigrationSettings>();
settingsQueue.Enqueue(settings);

while(settingsQueue.Count() != 0)

This comment was marked as spam.

This comment was marked as spam.

@Sridhar-MS Sridhar-MS force-pushed the sridhar-ms/multiple-proj-migrate branch from ff10c48 to 37063c4 Compare September 23, 2016 07:32
@Sridhar-MS Sridhar-MS changed the title [WIP-Do not merge]Migrate P2P references Migrate P2P references Sep 23, 2016
{
public class ProjectDependencyFinder
{
public IEnumerable<ProjectDependency> ResolveProjectDependencies(IEnumerable<ProjectContext> projectContexts)

This comment was marked as spam.

This comment was marked as spam.


if (IsMigrated(migrationSettings, migrationRuleInputs))
{
// TODO : Adding user-visible logging

This comment was marked as spam.

throw new ArgumentNullException();
}

MigrateHelper(rootSettings);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@brthor
Copy link

brthor commented Sep 23, 2016

A couple small comments, overall looks great.

After those are addressed :shipit:

var projectRootDirectory = GetRootFromProjectJson(projectJsonFilePath);

var projectSearchPaths = new List<string>();
projectSearchPaths.Add(projectDirectory);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sridhar-MS and others added 2 commits September 23, 2016 14:25
- Given a project migrate all the project references recursively.
- Add a boolean option '--skip-project-references' to skip migrating P2P references. By default P2P references are migrated.
- Remove the '--output' since it is not used heavily and makes migrating multiple projects easier.
- Add tests
@Sridhar-MS Sridhar-MS force-pushed the sridhar-ms/multiple-proj-migrate branch 2 times, most recently from 4a7ed87 to 8075d73 Compare September 23, 2016 21:53
@Sridhar-MS Sridhar-MS force-pushed the sridhar-ms/multiple-proj-migrate branch from 8075d73 to d43ade9 Compare September 23, 2016 22:31
@Sridhar-MS
Copy link
Author

@dotnet-bot test CentOS7.1 x64 Debug Build please

@brthor
Copy link

brthor commented Sep 23, 2016

After the xproj test :shipit: Looks good

@Sridhar-MS Sridhar-MS force-pushed the sridhar-ms/multiple-proj-migrate branch from 5c0ecbb to ec7aa87 Compare September 24, 2016 00:33
@Sridhar-MS
Copy link
Author

@dotnet-bot test OpenSUSE13.2 x64 Debug Build please

@livarcocc
Copy link

@dotnet-bot Test OpenSUSE13.2 x64 Debug Build

@Sridhar-MS Sridhar-MS merged commit 038fb6f into rel/1.0.0 Sep 24, 2016
@Sridhar-MS Sridhar-MS deleted the sridhar-ms/multiple-proj-migrate branch September 24, 2016 05:31
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.

5 participants