-
Notifications
You must be signed in to change notification settings - Fork 1k
Migrate P2P references #4221
Migrate P2P references #4221
Conversation
| 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ff10c48 to
37063c4
Compare
| { | ||
| public class ProjectDependencyFinder | ||
| { | ||
| public IEnumerable<ProjectDependency> ResolveProjectDependencies(IEnumerable<ProjectContext> projectContexts) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| if (IsMigrated(migrationSettings, migrationRuleInputs)) | ||
| { | ||
| // TODO : Adding user-visible logging |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| throw new ArgumentNullException(); | ||
| } | ||
|
|
||
| MigrateHelper(rootSettings); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
A couple small comments, overall looks great. After those are addressed |
| var projectRootDirectory = GetRootFromProjectJson(projectJsonFilePath); | ||
|
|
||
| var projectSearchPaths = new List<string>(); | ||
| projectSearchPaths.Add(projectDirectory); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
- 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
4a7ed87 to
8075d73
Compare
8075d73 to
d43ade9
Compare
|
@dotnet-bot test CentOS7.1 x64 Debug Build please |
|
After the xproj test |
5c0ecbb to
ec7aa87
Compare
|
@dotnet-bot test OpenSUSE13.2 x64 Debug Build please |
|
@dotnet-bot Test OpenSUSE13.2 x64 Debug Build |
Fixes item 2 and 5 in https://github.com/dotnet/cli/issues/4167
cc @brthor @eerhardt @livarcocc