开发者

Can't get msbuild.exe path correct with Hudson's MSBuild plugin

I have the msbuild plugin installed on my Hudson server, and it's attempting to execute the command, but for some reason the path I'm setting in my configuration is not being used when the msbuild task gets fired.

I have the following set in the configuration of hudson's msbuild plugin:

Path To msbuild.exe C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe

I left the name property blank.

When I do a build it outputs this:

Executing command: cmd.exe /C msbuild.exe /p:Configuration=Release ...

Which I kno开发者_StackOverflow中文版w is wrong because all the other examples show the [msbuild.exe] part fully qualified.

I've been searching everywhere trying to figure out why this isn't getting set properly and I've hit a brick wall.

Does anyone know how to fix this?


This works for me:

  • in the main hudson configuration I set the name to local-msbuild and the path to msbuild to C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe

  • select the local-msbuild as the MsBuild Versionin each project, instead of (default)


Of course, this begs the question why there IS a '(Default)' option that never works.

One hacky way around this is to set the name of your msbuild to (Default) in the main hudson configuration. Then in your project configurations, you have two (Default) options, but they both work... so you can leave it set to the default (Default) on new projects and it still works.


I had this problem. I fixed it by going to the Project Configuration Page to the Build Section. There is an option to set "MsBuild Version" with a dropdown box with 2 options: 1) Default; 2)MSBuild. Mine was set to Default. When I changed it to MSBuild the path set on the System Configuration page was used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜