-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
94,177 additions
and
354 deletions.
There are no files selected for viewing
70 changes: 35 additions & 35 deletions
70
OutputDlls/CopyDLLsToExtensionFolder.ps1 → .../Deprecated/CopyDLLsToExtensionFolder.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
#Copy all the DLL's in the containing directory to the visual studio extension manager folder | ||
|
||
$RegistryLocation = "HKCU:\SOFTWARE\Microsoft\VisualStudio\14.0\ExtensionManager\EnabledExtensions\" | ||
$ExtensionDir = "" | ||
$AddinExtensionDir = "" | ||
|
||
#Find the Extension Folder | ||
Push-Location | ||
Set-Location -Path $RegistryLocation | ||
Get-Item . | Select-Object -ExpandProperty property | ForEach-Object { | ||
|
||
if($_ -like "DynamicsRainier*") { | ||
$ExtensionDir = (Get-ItemProperty -Path . -Name $_).$_ | ||
#New-Object psobject -Property @{“property”=$_; | ||
#“Value” = (Get-ItemProperty -Path . -Name $_).$_} | ||
} | ||
|
||
Pop-Location | ||
} | ||
|
||
#Write-Output $ExtensionDir | ||
|
||
If($ExtensionDir.Length -gt 0) { | ||
$AddinExtensionDir = "$ExtensionDir\AddinExtensions" | ||
#Write-Output $AddinExtensionDir | ||
Get-ChildItem -Path ".\*.dll" | ForEach-Object { | ||
#Unblock the Dll's (they get blocked when downloaded) | ||
Unblock-File $_.Name | ||
#Copy the DLL's in the given directory | ||
$fileName = $_.Name | ||
Copy-Item -Path $_.Name -Destination "$AddinExtensionDir\$fileName" | ||
Write-Output "Copied file: $fileName" | ||
} | ||
} else { | ||
Write-Output "Could not find extension folder" | ||
#Copy all the DLL's in the containing directory to the visual studio extension manager folder | ||
|
||
$RegistryLocation = "HKCU:\SOFTWARE\Microsoft\VisualStudio\14.0\ExtensionManager\EnabledExtensions\" | ||
$ExtensionDir = "" | ||
$AddinExtensionDir = "" | ||
|
||
#Find the Extension Folder | ||
Push-Location | ||
Set-Location -Path $RegistryLocation | ||
Get-Item . | Select-Object -ExpandProperty property | ForEach-Object { | ||
|
||
if($_ -like "DynamicsRainier*") { | ||
$ExtensionDir = (Get-ItemProperty -Path . -Name $_).$_ | ||
#New-Object psobject -Property @{“property”=$_; | ||
#“Value” = (Get-ItemProperty -Path . -Name $_).$_} | ||
} | ||
|
||
Pop-Location | ||
} | ||
|
||
#Write-Output $ExtensionDir | ||
|
||
If($ExtensionDir.Length -gt 0) { | ||
$AddinExtensionDir = "$ExtensionDir\AddinExtensions" | ||
#Write-Output $AddinExtensionDir | ||
Get-ChildItem -Path ".\*.dll" | ForEach-Object { | ||
#Unblock the Dll's (they get blocked when downloaded) | ||
Unblock-File $_.Name | ||
#Copy the DLL's in the given directory | ||
$fileName = $_.Name | ||
Copy-Item -Path $_.Name -Destination "$AddinExtensionDir\$fileName" | ||
Write-Output "Copied file: $fileName" | ||
} | ||
} else { | ||
Write-Output "Could not find extension folder" | ||
} |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.