Is it possible to execute Msbuild commands from perl?
In powershell i use to retrieve all the Visual studio 2010 environment variables then call Msbuild commands directly.
function SetVS2010()
{
$vs100comntools = (Get-ChildItem env:VS100COMNTOOLS).Value
$batchFile = [System.IO.Path]::Combine($vs100comntools, "vsvars32.bat")
Get-Batchfile $BatchFile
[System.Console]::Title = "Visual Studio 2010 Windows PowerShell"
}
function Get-Batchfile($file)
{
$cmd = "`"$file`" & set"
cmd /c $cmd | Foreach-Object {
$p, $v = $_.split('=')
Set-Item -path env:$p -value $v
}
}
SetVS2010
Function Update-VersionInfo {
&"$MsbuildBinPath\Msbuild.exe" $MSBuildFile /t:UpdateVersionInfo $Logger $AllErrLogger
}
It was a great help. Whether the same can be archived in perl?