Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

project.json should support a way to specify that a dependency must be resolved as a project \ source. #2249

Closed
pranavkm opened this issue Jul 10, 2015 · 1 comment

Comments

@pranavkm
Copy link
Contributor

I ran into this issue as part of the version pinning. Microsoft.AspNet.Http.Core had been renamed, but the rename was not captured in a test project (https://github.com/aspnet/HttpAbstractions/blob/release/test/Microsoft.AspNet.WebUtilities.Tests/project.json#L5). This should have caused the test to fail compilation. However since earlier builds of this package are available on nuget.org, the package continued to be restored and the tests succeeded.

It would be much more reliable if a convention of "dependency": { 'version': 'version-number', type: 'src' }" was introduced that takes away the guessing involved in knowing where the contents you're working with came from. We can leave the current behavior as is, but using this would remove packages as a source of resolution for that dependency.

@davidfowl
Copy link
Member

Dupe of #438

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants