1
param($installPath, $toolsPath, $package, $project)
3
$targetFileName = 'RGiesecke.DllExport.targets'
4
$targetFileName = [System.IO.Path]::Combine($toolsPath, $targetFileName)
5
$targetUri = New-Object Uri -ArgumentList $targetFileName, [UriKind]::Absolute
7
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
9
$projects = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName)
11
return $projects | % {
14
$currentProject.Xml.Imports | ? {
15
return ("RGiesecke.DllExport.targets" -eq [System.IO.Path]::GetFileName($_.Project))
17
$currentProject.Xml.RemoveChild($_)
b'\\ No newline at end of file'