~brad-fie/fiecac/pythonnet

« back to all changes in this revision

Viewing changes to pythonnet/packages/UnmanagedExports.1.2.3-Beta/tools/uninstall.ps1

  • Committer: barton_c
  • Date: 2013-01-28 08:27:36 UTC
  • Revision ID: svn-v4:5f86b1fb-b072-4151-8f7b-27942c6ad9ab:trunk:153
# Visual Studio 2010 .NET 4.0 (with a little ReSharper thrown in) #
# The new C# clrmodule depends on RGiesecke.DllExport in new pythonnet/packages directory which was import via NuGet #
# The signing key finally landed in the correct directory #
# Not sure why the console/Console.csproj referenced Python.Test #
# Python.Runtime Assembly version bumped to 4.0.0.1 #
# Tool and Framework versions all bumped for .NET 4.0 #
# [Obsolete?] buildclrmodule.bat got a tiny note after cli research on clrmodule.il #

# EmbeddingTest remains in flux while issues with nUnit (version bump) get ironed out #

Show diffs side-by-side

added added

removed removed

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