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

Read the path and hashPath properties when reading .deps.json in hostfxr/policy #247

Merged
merged 5 commits into from Sep 12, 2016

Conversation

joelverhagen
Copy link
Member

Since a "hashPath" and "path" property are now in the .deps.json file, this PR updates the native components in core-setup to prefer these values over manually constructing the paths.

Addresses the next point in NuGet/Home#2522.

This is a reincarnation of #64.

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

{
library_path = library_path_iter->second.as_string();

if (_X('/') != DIR_SEPARATOR)

This comment was marked as spam.

This comment was marked as spam.

append_path(&hash_file, library_name.c_str());
append_path(&hash_file, library_version.c_str());
append_path(&hash_file, nupkg_filename.c_str());
if (library_path.empty())

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@gkhanna79
Copy link
Member

LGTM

@gkhanna79
Copy link
Member

Please validate the scenarios (with and w/o the data) and confirm they work :)

@eerhardt
Copy link
Member

eerhardt commented Sep 9, 2016

:shipit:

@joelverhagen joelverhagen merged commit e5d4769 into master Sep 12, 2016
@joelverhagen joelverhagen deleted the jver/pathprop branch September 12, 2016 16:50
joelverhagen added a commit that referenced this pull request Sep 21, 2016
Read the path and hashPath properties when reading .deps.json in hostfxr/policy
(cherry picked from commit e5d4769)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants