PowerShell helper for Visual Studio Package Manager Console
PowerShell Helper scripts to manage Service Fabric services.
cd your_directory
Import-Module .\VisualStudioHelper.psm1
Set-ExecutionPolicy Unrestricted
cd (Split-Path -parent $PROFILE)
ii .
If (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
Import-Module -Path script_directory -ErrorAction SilentlyContinue
Remove build directories
Remove-BuildDirectories
Remove-BuildDirectories -Path ‘C:\git\Projects\TestProject\’
Remove-BuildDirectories -Includes ‘.pyc’ -Path ‘C:\git\Python\’
Remove-BuildDirectories -Includes ‘‘ -Excludes ‘.cs’, ‘.sln’, ‘.csproj’, ‘.sfproj’, ‘*.resx’ -Path ‘C:\git\C#\’
Register package sources if the sources don’t exist
Register-PackageSources -names ‘Test’, ‘Test1’ -Location ‘NuGet Feed Url for Test’, ‘NuGet Feed Url for Test1’
Register-PackageSources -names ‘Test’, ‘Test1’ -Location ‘Feed Url for Test’, ‘Url for Test1’ -Provider ‘MyProvider’
Enable remote debugging for the current project
Enable-RemoteDebugging -Host ‘10.101.10.1’ -Port 4078 -Path ‘C:\MyServices\TestService\’
Disable remote debugging for the current project
Disable-RemoteDebugging
Get references for all projects
Get-References
Get-References -Regex Microsoft
Get-References -Regex ‘2.‘
Get-References -SpecificVersion $false
Remove all reference paths from all projects
Remove-AllReferencePaths
Remove specific reference path from all projects
Remove-ReferencePath “PACKAGE_NAME” “DLL_PATH\bin\Debug\”
Set specific reference path for all projects
Set-ReferencePath “PACKAGE_NAME” “DLL_PATH\bin\Debug\”