Skip to content

Commit e380755

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

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
@@ -59,7 +59,7 @@ private string GetRestoreArgs(RestoreSettings restoreSettings)
5959
Directory.CreateDirectory(path);
6060
}
6161

62-
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\"";
62+
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\" /p:AllowMissingPrunePackageData=true";
6363
}
6464

6565
if (restoreSettings.PathToNugetConfig != null)

0 commit comments

Comments
 (0)