Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes Hudson have a problem for building a CSPROJ file with MSBUILD?
    primarykey
    data
    text
    <p>Good morning</p> <p>I'm running Hudson <code>java -jar hudson.war</code> and I have configured MSBuild as <a href="http://redsolo.blogspot.com/2008/04/guide-to-building-net-projects-using.html" rel="nofollow">described here</a>. It seems MSBuild is not working. </p> <p>I think there is something to do with the default value contained in .csproj file:</p> <pre><code> &lt;Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /&gt; </code></pre> <p>This path is misleading, and takes Hudson to <code>C:\Microsoft.CSharp.targets</code> and not to <code>C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets</code> as it should be.</p> <p>I tried to hard code the csproj file, with this full path information, but it throws an exception too telling there is an invalid character.</p> <p>Maybe I'm using the wrong MSBuild.exe version?</p> <p>Here is the Hudson message when using default <code>$(MSBuildToolsPath)</code> variable in csproj:</p> <hr> <h2>Console Output</h2> <pre><code>Started by user anonymous Updating http://svn.mycoolserver.org/svn/repository/projects/trunk/MyCoolClassLibrary U MyCoolClassLibrary.csproj At revision 36706 Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe Executing command: cmd.exe /C C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe /p:Configuration=Release MyCoolClassLibrary.csproj &amp;&amp; exit %%ERRORLEVEL%% [workspace] $ cmd.exe /C C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe /p:Configuration=Release MyCoolClassLibrary.csproj &amp;&amp; exit %%ERRORLEVEL%% Microsoft (R) Build Engine Version 2.0.50727.3053 [Microsoft .NET Framework, Version 2.0.50727.3615] Copyright (C) Microsoft Corporation 2005. All rights reserved. C:\Documents and Settings\myUser\.hudson\jobs\MyCoolClassLibrary\workspace\MyCoolClassLibrary.csproj(63,11): error MSB4019: The imported project "C:\Microsoft.CSharp.targets" was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk. Finished: FAILURE </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload