snyk-nuget-plugin
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -108,2 +108,6 @@ "use strict"; | ||
await dotnet.validate(); | ||
// Write a .NET Framework Parser to a temporary directory for validating TargetFrameworks. | ||
const nugetFrameworksParserLocation = nugetFrameworksParser.generate(); | ||
await dotnet.restore(nugetFrameworksParserLocation); | ||
// Loop through all TargetFrameworks supplied and generate a dependency graph for each. | ||
const results = []; | ||
@@ -120,5 +124,5 @@ for (const decidedTargetFramework of decidedTargetFrameworks) { | ||
// we have maximum context to use later when building the depGraph. | ||
const location = nugetFrameworksParser.generate(); | ||
await dotnet.restore(location); | ||
const response = await dotnet.run(location, [decidedTargetFramework]); | ||
const response = await dotnet.run(nugetFrameworksParserLocation, [ | ||
decidedTargetFramework, | ||
]); | ||
const targetFrameworkInfo = JSON.parse(response); | ||
@@ -125,0 +129,0 @@ if (targetFrameworkInfo.IsUnsupported) { |
@@ -35,3 +35,3 @@ "use strict"; | ||
const childId = `${childNode.name}@${childNode.version}`; | ||
// If we're looking at a runtime assembly version for self-contained dlls, overwrite the dependency version | ||
// If we're looking at a runtime assembly version for self-contained dlls, overwrite the dependency version | ||
// we've found in the graph with those from the runtime assembly, as they take precedence. | ||
@@ -38,0 +38,0 @@ let assemblyVersion = version; |
@@ -61,3 +61,3 @@ { | ||
}, | ||
"version": "2.4.1" | ||
"version": "2.4.2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134357
1829