Skip to content

Commit 387211f

Browse files
Stop publishing of additional packages in fsharp (#19404)
1 parent ca9b41d commit 387211f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/SourceBuild/content/repo-projects/Directory.Build.targets

+12-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,18 @@
598598
<Copy SourceFiles="@(PackageVersionPropsSnapshotFiles)" DestinationFolder="$(PackageReportDir)snapshots/" />
599599

600600
<ItemGroup>
601-
<RestoredPackageFile Include="$(NuGetPackageRoot)**/*.nupkg"
601+
<!--
602+
Note the usage of */*/*.nupkg and not **/*.nupkg. The latter would include nupkgs
603+
carried as content, i.e. in Microsoft.FSharp.Compiler nupkg, and cause false positives.
604+
Content nupkgs were not restored and should not be used in prebuit detection.
605+
606+
Example of a restored package:
607+
$(NuGetPackageRoot)microsoft.fsharp.compiler/12.8.300-beta.24203.1/microsoft.fsharp.compiler.12.8.300-beta.24203.1.nupkg
608+
609+
Example of a content package:
610+
$(NuGetPackageRoot)microsoft.fsharp.compiler/12.8.300-beta.24203.1/contentFiles/Release/FSharp.Core.8.0.300.nupkg
611+
-->
612+
<RestoredPackageFile Include="$(NuGetPackageRoot)*/*/*.nupkg"
602613
Exclude="$(NuGetPackageRoot)tests/**/*.nupkg" />
603614

604615
<!-- Only contains packages when building. -->

0 commit comments

Comments
 (0)