snyk-nuget-plugin
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -42,3 +42,10 @@ "use strict"; | ||
const command = 'dotnet'; | ||
const args = ['restore', '--no-cache', '--verbosity', 'normal', projectPath]; | ||
const args = [ | ||
'restore', | ||
// Get a larger amount of debugging information to stdout in case something fails. | ||
// Useful for customers to attempt self-debugging before raising support requests. | ||
'--verbosity', | ||
'normal', | ||
projectPath, | ||
]; | ||
const result = await handle('restore', command, args); | ||
@@ -83,4 +90,5 @@ // A customer can define a <BaseOutPutPath> that redirects where `dotnet` saves the assets file. This will | ||
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), `snyk-nuget-plugin-publish-csharp-`)); | ||
args.push('--output'); | ||
args.push(tempDir); | ||
// See https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/7.0/solution-level-output-no-longer-valid#recommended-action | ||
// about why we're not using `--output` for this. | ||
args.push(`--property:PublishDir=${tempDir}`); | ||
// The path that contains either some form of project file, or a .sln one. | ||
@@ -87,0 +95,0 @@ // See: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish#arguments |
@@ -61,3 +61,3 @@ { | ||
}, | ||
"version": "2.4.0" | ||
"version": "2.4.1" | ||
} |
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
134060
1825