I wrote the <resx> task originally to replace ResGen.exe when VS.NET isn't installed. It turns out that installing the free Framework Development SDK installs this tool, so there's no problem with that (I hadn't realized this initially).
Our current resgen task only supports custom output filenames if you compile single files at a time. The API is much faster in this case. Fortunately, the "up-to-date" functionality of resgen should mitigate this for people primarily using NAnt to compile their projects. As well, a few extra seconds shouldn't matter a great deal to those doing automatic builds.
Would it possible somehow to allow the <resgen> task to specify custom output filenames for each input filename? It's not a huge problem, but it would certainly give us a bit of a speed boost in some cases.
In short, I think it's okay to remove the <resx> task. I can fix my VS.NET solution compiler to use the resgen task instead. :) The <license> task should probably be updated to be framework-agnostic as well. I don't know if the mono project has a license task, but we could donate the code in the task right now to them.
Matt.
Ian MacLean wrote:
I notice that we have both a resgen and a resx task in dotnet tasks. The only differences I see is that resgen wraps the resgen.exe while <resx> uses the api's directly and resx only takses a single input file instead of a fileset. Is there some other difference I'm not aware of ?
Normally I'd prefer using the api's directly. However when targetting multiple runtimes/frameworks it makes more sense to wrap the .exe. So that if the NAnt instance I'm running is using .Net 1.0 to run against but I want to compile using 1.1 tools then wrapping resgen.exe enables us to load the version from the 1.1 directory.
Should we remove the resx tassk to avoid confusion ?
Ian
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
