Build project using devenv.exe in TFS 15RC1 Build Server
<p>I have a trouble with understanding how to use devenv.exe from TFS Build Server. </p>

<p>There is no default step to use devenv, so I tried to use PowerShell sсript to execute devenv.exe with parameters. There are no errors in build process but I see that build result files are not updated.
If I execute the script manually on a agent-machine, the build passes successfully. That is my script:</p>

<pre><code>$process = [System.Diagnostics.Process]::Start( "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe", "/Rebuild ""MyConfig"" ""C:\agent\agent\_work\1\s\MyProject.sln"" /Project ""C:\agent\agent\_work\1\s\MyProject\MyProject.dwproj""") 
$process.WaitForExit()
</code></pre>

<p>As you see now I do not use variables for source paths, but I will use it if script will work.</p>

<p>I also have to say that I could not find any logs with errors. Maybe I do not know where to find them?</p>

<p>So,</p>

<ol>
<li>What am I doing wrong in powershell script?</li>
<li>What is the best practice to build project using devenv.exe in TFS Build Server?</li>
</ol>

<p>PS We are using TFS 15 RC1 (Version 15.103.25603.0).</p>