Skip to content

Commit

Permalink
Added 32 bit path to probe for TFS Client Object Model assemblies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Feb 22, 2016
1 parent 7793b61 commit 58052c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extension-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "jessehouwing-vsts-tfvc-tasks",
"name": "TFVC Build Tasks",
"version": "1.0.23",
"version": "1.0.26",
"publisher": "jessehouwing",
"public": true,
"targets": [
Expand Down
12 changes: 9 additions & 3 deletions vsts-tfvc-add/TfvcAdd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ function Load-Assembly
$ProbingPaths.Add($env:AGENT_SERVEROMDIRECTORY)
}

$VS14Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS14Path -ne $null)
$VS1454Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS1464Path -ne $null)
{
$ProbingPaths.Add((Join-Path $VS14Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
$ProbingPaths.Add((Join-Path $VS1464Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
}

$VS1432Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS1432Path -ne $null)
{
$ProbingPaths.Add((Join-Path $VS1432Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
}
}

Expand Down
12 changes: 9 additions & 3 deletions vsts-tfvc-checkin/TfvcCheckin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ function Load-Assembly
$ProbingPaths.Add($env:AGENT_SERVEROMDIRECTORY)
}

$VS14Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS14Path -ne $null)
$VS1454Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS1464Path -ne $null)
{
$ProbingPaths.Add((Join-Path $VS14Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
$ProbingPaths.Add((Join-Path $VS1464Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
}

$VS1432Path = (Get-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Microsoft\VisualStudio\14.0" -Name 'ShellFolder' -ErrorAction Ignore).ShellFolder
if ($VS1432Path -ne $null)
{
$ProbingPaths.Add((Join-Path $VS1432Path "\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"))
}
}

Expand Down

0 comments on commit 58052c5

Please sign in to comment.