Mineplex2018-withcommit/Website/packages/T4Scaffolding.1.0.6/tools/uninstall.ps1

14 lines
517 B
PowerShell
Raw Normal View History

2013-08-27 17:14:08 +02:00
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
}
}