Skip to content

Commit c8e13d8

Browse files
committed
C#: Set AllowMissingPrunePackageData=true to true when purposely using non-existing framework targets.
1 parent b0dd8b8 commit c8e13d8

File tree

1 file changed

+1
-1
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private string GetRestoreArgs(RestoreSettings restoreSettings)
7777
Directory.CreateDirectory(path);
7878
}
7979

80-
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\"";
80+
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\" /p:AllowMissingPrunePackageData=true";
8181
}
8282

8383
if (restoreSettings.PathToNugetConfig != null)

0 commit comments

Comments
 (0)