File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,22 @@ runs:
9797 $propertyGroup.AppendChild($restoreProjectStyle) | Out-Null
9898 $project.Project.AppendChild($propertyGroup) | Out-Null
9999
100- # create Analyzer element
100+ # create Analyzer elements
101101 $itemGroup = $project.CreateElement('ItemGroup', $project.Project.NamespaceURI)
102+
102103 $analyzer = $project.CreateElement('Analyzer', $project.Project.NamespaceURI)
103104 $analyzerInclude = $project.CreateAttribute('Include')
104105 # since the changes to the project will be discarded it is ok to set a Full path to SecurityCodeScanPackagePath
105106 $analyzerInclude.Value = Join-Path -Path $SecurityCodeScanPackagePath -ChildPath "$($SecurityCodeScanPackageName).$($SecurityCodeScanPackageVersion)\analyzers\dotnet\SecurityCodeScan.VS2019.dll"
106107 $analyzer.Attributes.Append($analyzerInclude) | Out-Null
107108 $itemGroup.AppendChild($analyzer) | Out-Null
109+
110+ $analyzer = $project.CreateElement('Analyzer', $project.Project.NamespaceURI)
111+ $analyzerInclude = $project.CreateAttribute('Include')
112+ $analyzerInclude.Value = Join-Path -Path $SecurityCodeScanPackagePath -ChildPath "$($SecurityCodeScanPackageName).$($SecurityCodeScanPackageVersion)\analyzers\dotnet\YamlDotNet.dll"
113+ $analyzer.Attributes.Append($analyzerInclude) | Out-Null
114+ $itemGroup.AppendChild($analyzer) | Out-Null
115+
108116 $project.Project.AppendChild($itemGroup) | Out-Null
109117
110118 $project.Save($projectFile.FullName)
You can’t perform that action at this time.
0 commit comments