NAnt Using NantContrib's msbuild task

liuxue.gu@hotmail.com · 2008年08月19日 · 13 次阅读

Using NantContrib's msbuild task

I'm in the process of trying to make a copy of tree surgeon that does a couple of different things. (If you don't know what tree surgeon is and you're a dotnet developer, I can not say enough good things about it, go, run, don't walk, get it)

One: I want to implement Jean-Paul Boodhoo's version of the Model-View-Presenter framework which he presented in DNRTV episode 14

Two: I want to provide a Console, a WinForm, and an ASP.Net front end.

Three: I want to upgrade treesurgeon to 2005.

In light of that, the first thing I had to do was to get the source code for treesurgeon and then upgrade it to VS2005. No big deal, just open it with 2005, up pops the wizard, it converts, again, no big deal.

My next issue was to try out the go.bat.

Uh-oh, NAnt doesn't do 2005 solutions, but nant contrib does "msbuild" tasks. Unfortunately, the nant contrib documentation assumes that you know msbuild, and doesn't explain how to chose which configuration to build with. Thankfully the blogosphere provided the answer with google pointing me over to Brig Lamoreaux's blog where he off handedly gave me what I needed to convert the nant task (Thanks Brig)

Here's the original target

It was the "property" setting for "Configuration" that I would have eventually come to after studying the msbuild documentation, which I don't really want to do, so again, a big "Thanks Brig" for saving me the time.

http://geekswithblogs.net/geekusconlivus/archive/2007/02/03/105375.aspx

暂无回复。
需要 登录 后方可回复。