Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Add support for the "path" property in the .deps.json file #235

Merged
merged 1 commit into from Aug 11, 2016

Conversation

joelverhagen
Copy link
Member

@eerhardt mentioned that Microsoft.Extensions.DependencyModel project moved to core-setup repository in my cli PR dotnet/cli#4032. This PR is porting the relevant changes from that cli to core-setup.

The purpose of this PR is to support the "path" property in the .deps.json file. Eventually the DotNetHost will prefer this "path" proper over the concatenation of ID and version when looking for a package in the global packages folder.

This is part of step #3 in this NuGet issue: NuGet/Home#2522.

/cc @eerhardt @livarcocc @gkhanna79 @piotrpMSFT @schellap

@@ -18,8 +18,32 @@ public class RuntimeLibrary : Library
IReadOnlyList<RuntimeAssetGroup> nativeLibraryGroups,
IEnumerable<ResourceAssembly> resourceAssemblies,
IEnumerable<Dependency> dependencies,
bool serviceable)
: base(type, name, version, hash, dependencies, serviceable)
bool serviceable) : this(

This comment was marked as spam.

This comment was marked as spam.

@eerhardt
Copy link
Member

eerhardt commented Aug 11, 2016

:shipit: Looks great. Thanks for doing this.

@gkhanna79
Copy link
Member

@joelverhagen Are you also going to update the host to support using this "path", like you did in your earlier approach (in PR https://github.com/dotnet/core-setup/pull/64/files)?

CC @schellap

@joelverhagen
Copy link
Member Author

@gkhanna79, yes. That's the next step.

@joelverhagen joelverhagen force-pushed the jver/depspath branch 2 times, most recently from 7252718 to 19837b4 Compare August 11, 2016 18:02
@@ -10,6 +10,11 @@ namespace Microsoft.Extensions.DependencyModel
public class Library
{
public Library(string type, string name, string version, string hash, IEnumerable<Dependency> dependencies, bool serviceable)

This comment was marked as spam.

This comment was marked as spam.

@livarcocc
Copy link

Couple of small things but LGTM.

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