Created
April 3, 2016 14:22
-
-
Save JanDeDobbeleer/1a8b01ad0f663f7ca9db1a27216b7518 to your computer and use it in GitHub Desktop.
psakefile tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3 | |
function Get-SolutionFolder | |
{ | |
return (Get-Item $PSScriptRoot).Parent.FullName | |
} | |
function Get-SolutionPath | |
{ | |
param | |
( | |
[string] | |
$solutionName | |
) | |
return ((Get-SolutionFolder) + "\$solutionName") | |
} | |
function Get-ProjectFilePath | |
{ | |
param | |
( | |
[string] | |
$projectName, | |
[string] | |
$fileName | |
) | |
return ((Get-SolutionFolder) + "\$project_name\$fileName") | |
} | |
function Get-ProjectFileXmlObject | |
{ | |
param | |
( | |
[string] | |
$filePath | |
) | |
$XMLfile = New-Object -TypeName XML | |
$XMLfile.Load($filePath) | |
return $XMLfile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment