Commit 03e6596
authored
exclude PackageOutputPath (#744)
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.1 parent b7118dd commit 03e6596
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
0 commit comments