Skip to content

Commit 3435c86

Browse files
committed
Pass project collection to the API
1 parent 90bdcb5 commit 3435c86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/MSBuildAPIUtility.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,8 @@ private static ProjectRootElement TryOpenProjectRootElement(string filename)
10451045
// TODO: Don't hardcode TFM.
10461046
return VirtualProjectBuilder.CreateProjectRootElement(
10471047
filePath: filename,
1048-
targetFrameworkVersion: "10.0");
1048+
targetFrameworkVersion: "10.0",
1049+
ProjectCollection.GlobalProjectCollection);
10491050
}
10501051

10511052
try

0 commit comments

Comments
 (0)