Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed https://github.com/NuGet/Home/issues/2601 #519

Closed
wants to merge 2 commits into from

Conversation

zhili1208
Copy link
Contributor

NuGet/Home#2601

the issue here is for website, projectNameFromMSbuildPath will be empty string, then projectJsonPathUtilities will throw.

the fix here is if the projectNameFromMSbuildPath is empty, just return project.json

@zhili1208
Copy link
Contributor Author

@emgarten @rrelyea

@emgarten
Copy link
Member

The fix looks correct. Adding a comment about web site projects and how this can occur would make this more clear. Also an if instead of the ternary operator would make this more readable.

@zhili1208 zhili1208 closed this Apr 21, 2016
@zhili1208 zhili1208 deleted the dev-zhi-fix2601 branch April 29, 2016 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants