Author Posts

August 23, 2016 at 9:55 am

Hi all I have written a PowerShell which will build the solution using devenv from PowerShell. Everything is working fine but what ever the errors I am getting while building from Visual Studio those errors I am unable to see in the log file, the only thing I am getting as ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

But not the actual errors, here is the sample script

$vsPath= (Get-Item  'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe').GetValue($name)
$parameters = """$SlnFile"" /Build development /project ""$SlnPath"" /out $logPath"
Start-Process -FilePath $vsPath -ArgumentList $parameters -Wait

August 23, 2016 at 10:44 am

I do not see anything in the script that would cause the errors. Do you get the same results if you run the build command outside of the script?