title: Jenkins MSbuild plugin not working
body: <p>I have configured MSBuild plugin in Jenkins using Global tool configuration section.</p>
  
  <p>Detailed information which I have provided is -</p>
  
  <pre><code>Name : MSBuild.exe
  Path to MSBuild : C:\Windows\Microsoft.NET\Framework64\v2.0.50727
  Default parameters : **No parameters**
  </code></pre>
  
  <p>In the job configuration page the infiormation regarding MSBuild looks like -</p>
  
  <pre><code>MSBuild Version : (Default)
  MSBuild Build File  : WSCSharp.sln
  Command line arguments : **None**
  Pass build variables as properties : **Unchecked**
  Continue Job on build Failure :  **Unchecked**
  If warnings set the build to Unstable : **Unchecked**
  </code></pre>
  
  <p>The project is a simple C# application which can be run by using command -</p>
  
  <pre><code>msbuild WSCSharp.sln /t:Build
  </code></pre>
  
  <p>But, now when I run the program, it throws error while building in Jenkins--</p>
  
  <pre><code>Building on master in workspace D:\Programs\Jenkins\jobs\WSCsharp\workspace
  Path To MSBuild.exe: msbuild.exe
  Executing the command cmd.exe /C " msbuild.exe WSCSharp.sln " &amp;&amp; exit %%ERRORLEVEL%% from D:\Programs\Jenkins\jobs\WSCsharp\workspace
  [workspace] $ cmd.exe /C " msbuild.exe WSCSharp.sln " &amp;&amp; exit %%ERRORLEVEL%%
  'msbuild.exe' is not recognized as an internal or external command,
  operable program or batch file.
  Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>So basically it is running the command : <code>msbuild.exe WSCSharp.sln</code> internally. Any idea why this is happening ?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Edit: I have tried to edit the path to MSBuild like this :</p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
  </code></pre>
  
  <p>This didn't work either.</p>