Mineplex2018-withcommit/Website/packages/T4Scaffolding.1.0.6/tools/uninstall.ps1
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

14 lines
517 B
PowerShell

param($rootPath, $toolsPath, $package, $project)
# Bail out if scaffolding is disabled (probably because you're running an incompatible version of NuGet)
if (-not (Get-Command Invoke-Scaffolder)) { return }
# Try to delete the solution-level config file, if there is one
if ($project) {
$solutionDir = [System.IO.Path]::GetDirectoryName($project.DTE.Solution.FullName)
$configFile = Join-Path $solutionDir "scaffolding.config"
if (Test-Path $configFile) {
Set-IsCheckedOut $configFile
del $configFile
}
}