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

Restore source dependencies feature (#185) #190

Merged
merged 1 commit into from
Feb 15, 2017
Merged

Conversation

cesarblum
Copy link

Better alternative to #188. Uses ProjectReference and does not require intermediate builds.

Thanks @dsplaisted for pointing out that restore /p:VersionSuffix= does the trick! 😄

#185


// Restore in each dir
foreach (var dir in dirs)
ProcessUtil.Run("dotnet", "restore /p:VersionSuffix=zzzzz-99999", workingDirectory: Path.Combine(path, benchmarksDir));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version suffix needs to be higher than whatever package versions we have in our feed. Hence this thing. I tried coming up with something whimsical but decided to go with this boring suffix 😛

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this deserves a comment.

@dsplaisted
Copy link

It makes me a bit uncomfortable to override the VersionSuffix for restore but not for build. I don't think it will affect anything, though, so it's probably fine.


// Restore in each dir
foreach (var dir in dirs)
ProcessUtil.Run("dotnet", "restore /p:VersionSuffix=zzzzz-99999", workingDirectory: Path.Combine(path, benchmarksDir));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this deserves a comment.

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.

5 participants