This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Repository navigation
CLI: Work with MSBuild projects - #16
Merged
Merged
Conversation
|
Hi @bricelam, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Eilon
approved these changes
Oct 26, 2016
Eilon
left a comment
There was a problem hiding this comment.
Though there's certainly a few things I don't know in great detail here, this looks amazingly simple and straightforward. So, "approved" for now, pending your remaining work items.
| if (result.ExitCode != 0) | ||
| { | ||
| throw new OperationErrorException( | ||
| $"Couldn't read metadata for project '{filePath}'. Ensure the package 'Microsoft.EntityFrameowrkCore.Tools' is installed."); |
Contributor
Author
There was a problem hiding this comment.
To be fair, it's not a framework...
natemcmaster
approved these changes
Oct 26, 2016
|
|
||
| if (Directory.Exists(filePath)) | ||
| { | ||
| var msbuildFiles = Directory.EnumerateFiles(filePath, "*.*proj").Take(2).ToList(); |
Contributor
There was a problem hiding this comment.
This will match xproj too. Probably better to filter that since it's not actually an "MSBuild" project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves dotnet/efcore#6139
This is based on the prototype by @natemcmaster.
TODO
dotnet restore3had some issues with stars in versions)Remove(not yet)project.jsonsupportcc @Eilon