Skip to content

Commit

Permalink
Honoring the devDep for our NuGet.Build.Packaging nuget
Browse files Browse the repository at this point in the history
Until this issue is fixed by the Nuget.Client team:

NuGet/Home#4125 (comment)
  • Loading branch information
adalon committed Feb 23, 2017
1 parent 9ab6c5b commit ace6ec9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ public void AddOrUpdate(string bstrName, string bstrVersion, Array pbstrMetadata

item.SetMetadataValue(VersionMetadataName, bstrVersion);
for (int i = 0; i < pbstrMetadataElements.Length; i++)
item.SetMetadataValue((string)pbstrMetadataElements.GetValue(i), (string)pbstrMetadataValues.GetValue(i)); ;
item.SetMetadataValue((string)pbstrMetadataElements.GetValue(i), (string)pbstrMetadataValues.GetValue(i));

// Hack/fix for: https://github.com/NuGet/Home/issues/4125#issuecomment-282023729
if (bstrName == Constants.NuGet.BuildPackagingId)
item.SetMetadataValue("PrivateAssets", "all");

}, lockType: LockType.Write);
}
Expand Down

0 comments on commit ace6ec9

Please sign in to comment.