C#: Set AllowMissingPrunePackageData=true to true when purposely using non-existing framework targets.

This commit is contained in:
Michael Nebel
2025-11-25 13:44:29 +01:00
parent cdd8aa49e1
commit 4274af4f73

View File

@@ -77,7 +77,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
Directory.CreateDirectory(path);
}
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\"";
args += $" /p:TargetFrameworkRootPath=\"{path}\" /p:NetCoreTargetingPackRoot=\"{path}\" /p:AllowMissingPrunePackageData=true";
}
if (restoreSettings.PathToNugetConfig != null)