Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 9b24856

Browse files
adalonkzu
authored andcommitted
Honoring the devDep for our NuGet.Build.Packaging nuget
Until this issue is fixed by the Nuget.Client team: NuGet/Home#4125 (comment)
1 parent c46ff5b commit 9b24856

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/VisualStudio/NuGet.Packaging.VisualStudio.15/PackageReferencesService.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ public void AddOrUpdate(string bstrName, string bstrVersion, Array pbstrMetadata
104104

105105
item.SetMetadataValue(VersionMetadataName, bstrVersion);
106106
for (int i = 0; i < pbstrMetadataElements.Length; i++)
107-
item.SetMetadataValue((string)pbstrMetadataElements.GetValue(i), (string)pbstrMetadataValues.GetValue(i)); ;
107+
item.SetMetadataValue((string)pbstrMetadataElements.GetValue(i), (string)pbstrMetadataValues.GetValue(i));
108+
109+
// Hack/fix for: https://github.com/NuGet/Home/issues/4125#issuecomment-282023729
110+
if (bstrName == Constants.NuGet.BuildPackagingId)
111+
item.SetMetadataValue("PrivateAssets", "all");
108112

109113
}, lockType: LockType.Write);
110114
}

0 commit comments

Comments
 (0)