Skip to content

Commit 73f7718

Browse files
authored
Ignore external packages in package source generation (#631)
Fixes dotnet/source-build#3364
1 parent 9092071 commit 73f7718

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/packageSourceGenerator/PackageSourceGenerator.proj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,16 @@
328328
<TargetingPackage Include="Microsoft.AspNetCore.App.Ref" />
329329
<TargetingPackage Include="Microsoft.WindowsDesktop.App.Ref" />
330330
</ItemGroup>
331+
332+
<!-- External packages aren't visited as they shouldn't be added to SBRP. -->
333+
<ItemGroup>
334+
<ExternalPackage Include="Newtonsoft.Json" />
335+
</ItemGroup>
331336

332337
<ItemGroup>
333338
<FilteredPackageDependency Include="@(PackageDependency)"
334-
Exclude="@(TargetingPackage)" />
339+
Exclude="@(TargetingPackage);
340+
@(ExternalPackage)" />
335341
</ItemGroup>
336342

337343
<MSBuild Projects="$(MSBuildThisFileFullPath)"

0 commit comments

Comments
 (0)