full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/GettingStartedWithEntityFrameWork6/SimpleApplication/packages/jQuery.1.7.1.1/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/EntityFramework.6.1.2/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa2AYJKoZIhvcNAQcCoIIayTCCGsUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/EntityFramework.6.1.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/jQuery.1.7.1.1/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/jQuery.1.7.1.1/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $supportsJsIntelliSenseFile = [System.Version]::Parse($dte.Version).Major -ge 11 if (-not $supportsJsIntelliSenseFile) { Write-Host "IntelliSense JS files are n...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/MvcApplication/packages/jQuery.1.7.1.1/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/EntityFramework.6.1.2/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa2AYJKoZIhvcNAQcCoIIayTCCGsUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/EntityFramework.6.1.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/jQuery.1.7.1.1/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/jQuery.1.7.1.1/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $supportsJsIntelliSenseFile = [System.Version]::Parse($dte.Version).Major -ge 11 if (-not $supportsJsIntelliSenseFile) { Write-Host "IntelliSense JS files are n...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/AspMvcApp/DrivingSchoolMVCApp/packages/jQuery.1.7.1.1/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.1.10.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.1.10.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.1.10.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.2.1.3/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.2.1.3/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.2.1.3/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/EntityFramework.6.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/EntityFramework.6.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.UI.Combined.1.11.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.UI.Combined.1.11.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $juiFileNameRegEx ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/MeetingTracker/MeetingTracker/packages/jQuery.UI.Combined.1.11.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/jQuery.1.10.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/jQuery.1.10.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/jQuery.1.10.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/EntityFramework.6.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/EntityFramework.6.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/musa-zulu_mini_projects/mini_projects/ASPDOTNET/DrivingSchoolMVCApp/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/Azannah_PSNotify/PSNotify/Script.ps1
Script.ps1
# # Script.ps1 # Set-StrictMode -Version Latest Import-Module ($PSScriptRoot + "\ADLDAP.psm1") Import-Module ($PSScriptRoot + "\Notification.psm1") Import-Module ($PSScriptRoot + "\Tokens.psm1") Import-Module ($PSScriptRoot + "\SecureCache.psm1") Import-Module ($PSScriptRoot + "\SplunkAlerts.psm1") ...
PowerShellCorpus/Github/Azannah_PSNotify/PSNotify/Tokens.tests.ps1
Tokens.tests.ps1
Describe "Tokens" { Context "Exists" { It "Runs" { } } }
PowerShellCorpus/Github/Azannah_PSNotify/PSNotify/SecureCache.tests.ps1
SecureCache.tests.ps1
#Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force #Import-Module Pester @( "C:\Users\MatthewF\Source\Repos\PSNotify\PSNotify", # Laptop (Zen) "C:\Users\matthew.johnson\Source\Repos\PSNotify\PSNotify" # Desktop at work "D:\Users\Matthew Johnson\Source\GitHub\PSNotify\PSNotif...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_24_17_58_25/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source url: ...
PowerShellCorpus/Github/rkarni_Sample/AssemblyVersion/UpdateVersion.ps1
UpdateVersion.ps1
$ErrorActionPreference = "Stop" function Get-VersionValue([string]$OldValue, [string]$NewValue) { if (-not $NewValue) { return $OldValue } # Placeholder for other functionality, like incrementing, dates, etc.. if ($NewValue -eq "increment") { [long]$newNum = 1 if (-...
PowerShellCorpus/Github/rkarni_Sample/Validation/LowerEnvironmentDeploymentValidation.ps1
LowerEnvironmentDeploymentValidation.ps1
param( [Parameter(Mandatory=$true)] [string]$FileName, [Parameter(Mandatory=$true)] [string]$Value ) $ErrorActionPreference = "Stop" function Validate-LowerDeployment([string]$FileName, [string]$Value) { $folder = Join-Path $env:workspace "Artifacts\$env:Environment\$env:Ap...
PowerShellCorpus/Github/rkarni_Sample/Transformation/TransformPackage.ps1
TransformPackage.ps1
param( [Parameter(Mandatory=$true)] [string]$Environment, [Parameter(Mandatory=$true)] [string]$PackageLocation, [Parameter(Mandatory=$true)] [string]$Passkey ) $ErrorActionPreference = "Stop" $transformFile = Join-Path $PSScriptRoot "Transform.ps1" function Update-Configurat...
PowerShellCorpus/Github/rkarni_Sample/Transformation/Transform.ps1
Transform.ps1
param( [Parameter(Mandatory=$true)] [string]$InputFile, [Parameter(Mandatory=$true)] [string]$OutputFile, [Parameter(Mandatory=$true)] [string]$Script, [string]$Passkey, [switch]$SkipEncrypted ) $ErrorActionPreference = "Stop" $includes = New-Object "System.Col...
PowerShellCorpus/Github/rkarni_Sample/Transformation/TransformWebApp.ps1
TransformWebApp.ps1
param( [Parameter(Mandatory=$true)] [string]$Environment, [Parameter(Mandatory=$true)] [string]$TransformFile, [Parameter(Mandatory=$true)] [string]$ApplicationLocation, [Parameter(Mandatory=$true)] [string]$Passkey, [Parameter(Mandatory=$true)] [string]$Application ...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/UnzipS3Artifacts.ps1
UnzipS3Artifacts.ps1
$ErrorActionPreference = "Stop" $files = Get-ChildItem -Path "$env:workspace\Artifacts\$env:Environment\$env:Application_Name" -Filter "*.zip" -Recurse; Add-Type -AssemblyName System.IO.Compression.FileSystem; ForEach ($fn in $files) { [System.IO.Compression.ZipFile]::ExtractToDirectory($fn.FullName, $fn.Dir...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenMasterData/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenMasterData\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenMasterData\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenMasterData" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-C...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenIdentityServer/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenIdentityServer\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenIdentityServer\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenIdentityServer" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $fold...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenAngularClientAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenAngularClientAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenAngularClientAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenAngularClientAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenNugetServer/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenNugetServer\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenNugetServer\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenNugetServer" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Ge...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEILiteExternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEILiteExternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEILiteExternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEILiteExternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-P...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenSampleApp/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenSampleApp\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenSampleApp\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenSampleApp" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-Chil...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEmail/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEmail\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEmail\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEmail" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-ChildItem -Path ...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenFLVInternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenFLVInternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenFLVInternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenFLVInternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $fold...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEIPortalInternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEIPortalInternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEIPortalInternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEIPortalInternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenFileStorage/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenFileStorage\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenFileStorage\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenFileStorage" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Ge...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEligibility/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEligibility\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEligibility\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEligibility" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Ge...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenSiteCatalyst/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenSiteCatalyst\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenSiteCatalyst\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenSiteCatalyst" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { ...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEntitlements/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEntitlements\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEntitlements\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEntitlements" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { ...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEIPortalWeb/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\EIPortalWeb\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\EIPortalWeb\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEIPortalWeb" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-ChildItem -P...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenPCInternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenPCInternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenPCInternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenPCInternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder)...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEILiteWeb/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEILiteWeb\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEILiteWeb\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEILiteWeb" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-Chil...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenFLVWeb/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenFLVWeb\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenFLVWeb\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenFLVWeb" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-ChildItem -Pa...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenAngularClientWeb/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenAngularClientWeb\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenAngularClientWeb\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenAngularClientWeb" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenFLVExternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenFLVExternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenFLVExternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenFLVExternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $fold...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEIPortalExternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEIPortalExternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEIPortalExternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEIPortalExternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenGateWay/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenGateWay\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenGateWay\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenGateWay" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-ChildItem ...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenEILiteInternalAPI/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenEILiteInternalAPI\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenEILiteInternalAPI\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenEILiteInternalAPI" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-P...
PowerShellCorpus/Github/rkarni_Sample/CodeDeploy/AppSpec/NextGenPCWeb/hooks/BackupArtifacts.ps1
BackupArtifacts.ps1
$PreviousBackup="D:\ArtifactsBackup\NextGenPCWeb\PreviousBackup" $LatestBackup="D:\ArtifactsBackup\NextGenPCWeb\LatestBackup" $CurrentDeploymentLocation="D:\Artifacts\NextGenPCWeb" $ErrorActionPreference = "Stop" function DeleteCreateDirectory([string]$folder) { if (Test-Path $folder) { Get-ChildItem -Path ...
PowerShellCorpus/Github/rkarni_Sample/UnusedScriptsforFutureReference/EditAppSpecFile.ps1
EditAppSpecFile.ps1
param( [Parameter(Mandatory=$true)] [string]$Environment, [Parameter(Mandatory=$true)] [string]$AppSpecFile ) $ErrorActionPreference = "Stop" if (Test-Path $AppSpecFile) { $doc = (Get-Content $AppSpecFile) (Get-Content $AppSpecFile) | Foreach-Object { if ($Environment -ne "PROD"...
PowerShellCorpus/Github/rkarni_Sample/UnusedScriptsforFutureReference/ClearApplicationChoicePropertiesFile.ps1
ClearApplicationChoicePropertiesFile.ps1
$Deployment_Options = @("$env:Mozart_Web_Folder_Name", "$env:Mozart_API_Folder_Name", "$env:Mozart_Word_Package_Folder_Name", "$env:Mozart_Identity_Server_Folder_Name", "$env:Mozart_DB_Deployment_Folder_Name", "$env:Deployment_Details_File") foreach ($element in $Deployment_Options) { if (Test-Path "$env:works...
PowerShellCorpus/Github/rkarni_Sample/Common/GetGitLocalRevisionNumber.ps1
GetGitLocalRevisionNumber.ps1
$gitlogfile = Get-Content -Path $env:workspace\$env:GIT_FOLDER_NAME\.git\refs\heads\$env:GIT_BRANCH | Select-Object -First 1 $localrevision = $gitlogfile.Substring(0,7) $localrevisionnumber ='localrevisionnumber = ' + $localrevision $Environment ='Environment = ' + $env:Environment $GIT_BRANCH ='GIT_BRANCH = ' + ...
PowerShellCorpus/Github/rkarni_Sample/Common/SetPropertiesFile.ps1
SetPropertiesFile.ps1
# The following prepares the .properties file that used as an evidence that particular downstream job must be built. param( [Parameter(Mandatory=$true)] [string]$FileName, [Parameter(Mandatory=$true)] [string]$Value ) $ErrorActionPreference = "Stop" function Update-PropertyFile([stri...
PowerShellCorpus/Github/rkarni_Sample/Common/SplitSourceRevisionNumber.ps1
SplitSourceRevisionNumber.ps1
$ErrorActionPreference = "Stop" $SourceRevisionNumber = $env:Source_Revision_Number $VersionNumber,$shacode = $SourceRevisionNumber.split('_') $VersionNumber $shacode $DLLVersionNumber = 'DLLVersionNumber = ' + $VersionNumber $DLLVersionNumber | Add-Content $env:workspace\$env:Deployment_Details_File.Proper...
PowerShellCorpus/Github/rkarni_Sample/Common/CheckCreateBuild.ps1
CheckCreateBuild.ps1
param( [Parameter ()] [String]$CREATE_BUILD = "false" ) $CREATE_BUILD = [Boolean]::Parse($CREATE_BUILD) $CREATE_BUILD ='CREATE_BUILD = ' + $CREATE_BUILD $ErrorActionPreference = "Stop" $CREATE_BUILD | Add-Content $env:workspace\$env:Deployment_Details_File.Properties
PowerShellCorpus/Github/rkarni_Sample/Common/DeleteArtifactsFolder.ps1
DeleteArtifactsFolder.ps1
$folder="$env:workspace\Artifacts\$env:Environment\$env:Application_Name" $ErrorActionPreference = "Stop" if (Test-Path $folder) { #Remove-Item $folder -Recurse Get-ChildItem -Path $folder -Include * | remove-Item -recurse } else { New-Item -ItemType Directory -Force -Path $folder } #If(!(test-...
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_14895530825402/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/cfoellmann_vvv-for-windows/temp.ps1
temp.ps1
if ($VagrantCustomPath) { $customPath = "VAGRANTAPPDIR=" + $VagrantCustomPath } else { $customPath = "" } # fix environment # VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ # PATH + ;C:\Program Files\Oracle\VirtualBox [Environment]::SetEnvironmentVariable( "Pat...
PowerShellCorpus/Github/cfoellmann_vvv-for-windows/test.ps1
test.ps1
function checkVagrantVersion { function getVagrantVersion($installPath) { # @todo #$vagrantManagePath = Join-Path $installPath "VBoxManage.exe" #$vagrantInstalledVersion = Start-Process $vboxManagePath -ArgumentList "-v" # 4.3.14r95030 $vagrantInstalledVersion = "Vagrant 1.6...
PowerShellCorpus/Github/cfoellmann_vvv-for-windows/vvv-installer.ps1
vvv-installer.ps1
<# # ============================================================================== # # Varying Vagrant Vagrants for Windows # # ---- vvv-installer.ps1 v0.0.1 # ============================================================================== @todo VBoxManage extpack install <.vbox-extpack> --replace # https://ww...
PowerShellCorpus/Github/cfoellmann_vvv-for-windows/tools-node.ps1
tools-node.ps1
<# # ============================================================================== # # Node.js + Grunt and Bower for Windows # # ---- tools-node.ps1 v0.0.1 # ============================================================================== #> param( [switch]$checkonly = $false, [switch]$grunt = $true,...
PowerShellCorpus/Github/cfoellmann_vvv-for-windows/git-ssh.ps1
git-ssh.ps1
<# # ============================================================================== # # Git + SSH for Windows # # ---- git-ssh.ps1 v0.0.1 # ============================================================================== #> param( [switch]$checkonly = $false, [switch]$tortoisegit = $false ) ######...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/jQuery.1.10.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/jQuery.1.10.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/jQuery.1.10.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/EntityFramework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/EntityFramework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/vladasp_InventASP/WebTestInvent/packages/Newtonsoft.Json.6.0.4/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) try { # Set up variables $timestamp = (Get-Date).ToString('yyyyMMddHHmmss') $projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar)) $catalogName = "aspnet-$project...
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/leerman_asp/MvcApplication1/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...