param($installPath, $toolsPath, $package, $project)

$obj = $project.Object
$getRefsMethod = [Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectShim].GetMethod("get_References")
$refs = $getRefsMethod.Invoke($obj, $null)
$assemblyRef = $refs.Find("RestSharp.Portable.Encodings")
if ($assemblyRef -ne $NULL) {
	$assemblyRef.Remove();
}

param($installPath, $toolsPath, $package, $project)

$obj = $project.Object
$getRefsMethod = [Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectShim].GetMethod("get_References")
$refs = $getRefsMethod.Invoke($obj, $null)
$assemblyRef = $refs.Find("RestSharp.Portable")
if ($assemblyRef -ne $NULL) {
	$assemblyRef.Remove();
}

Fix for C++/CLI to ensure that the assembly gets removed
Fix for C++/CLI to ensure that the assembly gets removed
