mirror of
https://github.com/SCToolsfactory/SCJMapper-V2.git
synced 2024-11-10 13:10:25 +00:00
14 lines
365 B
PowerShell
14 lines
365 B
PowerShell
|
param($installPath, $toolsPath, $package, $project)
|
||
|
|
||
|
"Uninstalling [{0}] from project [{1}]" -f $package.Id, $project.FullName | Write-Host
|
||
|
|
||
|
# Retrieve the reference to the package
|
||
|
$sharpdx_reference = $project.Object.References.Item($package.Id)
|
||
|
if ($sharpdx_reference)
|
||
|
{
|
||
|
# Remove the reference
|
||
|
$sharpdx_reference.Remove()
|
||
|
# Save the project
|
||
|
$project.Save()
|
||
|
}
|