Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

Commit c16d11b

Browse files
fix a possible issue for multiple projects
1 parent a2fccaf commit c16d11b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class Action {
5555

5656
console.log(`NuGet Source: ${this.nugetSource}`)
5757

58+
fs.readdirSync(".").filter(fn => /\.s?nupkg$/.test(fn)).forEach(fn => fs.unlinkSync(fn))
59+
5860
this._executeInProcess(`dotnet build -c Release ${this.projectFile}`)
5961

6062
this._executeInProcess(`dotnet pack ${this.includeSymbols ? "--include-symbols -p:SymbolPackageFormat=snupkg" : ""} --no-build -c Release ${this.projectFile} -o .`)

0 commit comments

Comments
 (0)