Skip to content

Instantly share code, notes, and snippets.

@JanDeDobbeleer
Created April 3, 2016 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanDeDobbeleer/1a8b01ad0f663f7ca9db1a27216b7518 to your computer and use it in GitHub Desktop.
Save JanDeDobbeleer/1a8b01ad0f663f7ca9db1a27216b7518 to your computer and use it in GitHub Desktop.
psakefile tools
#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