nant question?

M

Me

I have a simple solution file which I am looking to build using Nant

However this is written in .net 2.0 and when I try building this .net
2.0, I get an error message saying "Microsoft Visual Studio.NET 2005
solutions are not supported."

Does nant not support building .net projects?

Many thanks
 
N

Nicholas Paldino [.NET/C# MVP]

Well, nant probably used to parse the old project file. However, for
..NET 2.0, VS.NET project files have changed to be MSBUILD project files,
with a completely different (XML) structure. The old structure was not XML,
from what I recall.

I don't know if there is a conversion program for NANT to MSBUILD (or
vice versa), but you might want to look. Of course, custom build tasks are
probably not going to map well.

Hope this helps.
 
M

Markus Stoeger

Me said:
I have a simple solution file which I am looking to build using Nant

However this is written in .net 2.0 and when I try building this .net
2.0, I get an error message saying "Microsoft Visual Studio.NET 2005
solutions are not supported."

Does nant not support building .net projects?

No it doesn't support building VS2005 solutions directly. Take a look at
the exec task. You can use it to execute devenv.exe directly with some
command line arguments. I haven't tried that with VS2005 yet, but we use
it with VS2003 (instead of the solution task) and it works fine.

hth,
Max
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top