Skip to content

exclude PackageOutputPath#744

Merged
SimonCropp merged 1 commit intomainfrom
exclude-PackageOutputPath
Mar 21, 2026
Merged

exclude PackageOutputPath#744
SimonCropp merged 1 commit intomainfrom
exclude-PackageOutputPath

Conversation

@SimonCropp
Copy link
Copy Markdown
Owner

  1. DocoTask.cs (line 27): Added PackageOutputPath property. In Execute() (lines 34-38), if set, it resolves the path relative to ProjectDirectory and adds it to ExcludeDirs before the exclusion filters are built.
  2. MarkdownSnippets.MsBuild.targets (line 23): Passes $(PackageOutputPath) from the MSBuild context to the task.

When a project sets nugets, MSBuild passes that value to the task, which
resolves it to an absolute path and adds it to the directory exclusion list — preventing the scanner from trying to
read locked .nuspec/.nupkg files in that directory.

  1. DocoTask.cs (line 27): Added PackageOutputPath property. In Execute() (lines 34-38), if set, it resolves the path
  relative to ProjectDirectory and adds it to ExcludeDirs before the exclusion filters are built.
  2. MarkdownSnippets.MsBuild.targets (line 23): Passes $(PackageOutputPath) from the MSBuild context to the task.

  When a project sets <PackageOutputPath>nugets</PackageOutputPath>, MSBuild passes that value to the task, which
  resolves it to an absolute path and adds it to the directory exclusion list — preventing the scanner from trying to
  read locked .nuspec/.nupkg files in that directory.
@SimonCropp SimonCropp added this to the 28.1.0 milestone Mar 21, 2026
@SimonCropp SimonCropp merged commit 03e6596 into main Mar 21, 2026
5 checks passed
@SimonCropp SimonCropp deleted the exclude-PackageOutputPath branch March 21, 2026 07:12
This was referenced Apr 14, 2026
This was referenced Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant