nant question?

  • Thread starter Thread starter Me
  • Start date Start date
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
 
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.
 
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
 
Back
Top