Skip to content

Commit

Permalink
Include nuspec files of debug packages (projectname.Debug.nuspec)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Sep 10, 2021
1 parent 2438db6 commit 57b80dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,15 @@ module.exports = class Finder extends Emitter {

const dir = path.dirname(projectFile)
const ext = path.extname(projectFile)
const projectName = path.basename(projectFile, ext)

const nuspecFile = path.join(dir, path.basename(projectFile, ext) + '.nuspec')
const nuspecFile = path.join(dir, projectName + '.nuspec')
if (fs.existsSync(nuspecFile)) this.readNuspec(nuspecFile)

// Include debug variants of nuget packages. Is there a convention for this?
const nuspecDebugFile = path.join(dir, projectName + '.Debug.nuspec')
if (fs.existsSync(nuspecDebugFile)) this.readNuspec(nuspecDebugFile)

if (language !== 'C#' && language !== 'F#') {
return done()
}
Expand Down

0 comments on commit 57b80dd

Please sign in to comment.