Skip to content

Commit ea6c697

Browse files
authored
Update action.yml
1 parent a3b72e8 commit ea6c697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ runs:
1616
$xml = [xml](Get-Content -Path $project)
1717
if (-not $xml.Project.xmlns) {
1818
dotnet add $project package SecurityCodeScan.VS2019
19-
$xml = [xml](Get-Content -Path $project)
2019
}
2120
else {
2221
$packageId = "SecurityCodeScan.VS2019"
@@ -89,6 +88,7 @@ runs:
8988
Invoke-Expression "[Program$id]::Main()"
9089
}
9190
91+
$xml = [xml](Get-Content -Path $project)
9292
if ($xml.Project.xmlns) {
9393
$nsmgr = New-Object System.Xml.XmlNamespaceManager $xml.NameTable
9494
$nsmgr.AddNamespace('x','http://schemas.microsoft.com/developer/msbuild/2003')

0 commit comments

Comments
 (0)