English 中文(简体)
Visual studio 2008 & nant , msbuild how we use this for automate? Is nant work for vs2008?
原标题:

I am working on a windows as well as web projects. We currently use Visual Studio to build our solution using visual studio 2008.

I would like to move to a more powerful build system such as Nant or MsBuild for atomate.

What are the ways & how i do this?

Currntly we use Visual source safe & mercurial(hg) as source control How does this all integrate with Source Control?

Help me all the ways.. Thanks!

问题回答

Last time I checked, NAnt didn t support VS2008 project files properly.

I personally like using NAnt as the general build controller, but delegating to MSBuild for the core "build the code into assemblies" part. This has worked well for me in Protocol Buffers, for example.

I don t know about using either VSS or Hg from NAnt, but I d be very surprised if there weren t adapters available. Where do you need to integrate source control with the build, is it for version numbers, continuous integration, or something else? You may find that whatever continuous integration server you re using can handle the source control aspect itself, and that your build file doesn t need to know about it.

This really depends on what you want to automate and how. Visual Studio Solution files can be called directly from MSBuild, so to just build the solution without Visual Studio, nothing has to be done.

NAnt can call msbuild to build Solution files for you, so you can wrap you solution build in a NAnt script and do other useful things around it. This is how I usually do things. That way your build script and your solution files stay in sync.

NAnt has had VSS tasks since the dawn of time, so checking out the code is trivial. If they don t have a Mercurial task, there is always the exec task which will allow you to run any commandline program (I assume there is one for Mercurial).

Normally I have a build server with a working copy of the application/solution. Then, each night, the server calls a NAnt script that updates the working copy to the latest revision, and builds the solution using the msbuild task. Then you can do all kinds of nifty things like creating zips or tars, or even installers.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签