Re: [nant-dev] ILASM Task
- Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Giuseppe Greco [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 02, 2004 7:41 AM Subject: Re: [nant-dev] ILASM Task Giuseppe Greco wrote: Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. thanks. I'll look at adding this to the code base shortly. Will you be adding it to NAnt or NAntContrib ? Guess we should discuss what procedure to follow when adding new tasks, or do decide on a task-by-task basis ? Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Ian, sorry... just to be precise I've removed a 'using' statement that was not required. Here's the very definitive source file. j3d. Giuseppe Greco wrote: Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. thanks. I'll look at adding this to the code base shortly. Do you think it would also be helpful to have the ildasm task? Definately. Then you can do cool stuff like disassemble/merge extra code and reassemble using ilasm. Ian j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com // NAnt - A .NET build tool // Copyright (C) 2001-2002 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Giuseppe Greco ([EMAIL PROTECTED]) using System.IO; using NAnt.Core; using NAnt.Core.Attributes; using NAnt.Core.Tasks; using NAnt.Core.Types; using NAnt.Core.Util; namespace NAnt.DotNet.Tasks { /// summary /// Compiles ILASM programs. /// /summary /// example /// paraCompiles chelloworld.il/c to chelloworld.exe/c./para /// code /// ![CDATA[ /// ilasm target=exe output=helloworld.exe debug=true /// sources /// include name=helloworld.il / /// /sources /// /ilasm /// ]] /// /code /// /example [TaskName(ilasm)] [ProgramLocation(LocationType.FrameworkDir)] public class IlasmTask : ExternalProgramBase { #region Private Instance Fields private bool _clock; private bool _debug; private bool _error; private bool _forceRebuild; private bool _listing; private bool _quiet; private string _alignment; private string _base; private string _flags; private string _target; private string _subsystem; private string _keySource; private FileInfo _keyFile; private FileInfo _outputFile; private FileInfo _resourceFile; private FileSet _sources; private string _options; #endregion Private Instance Fields #region Public Instance Properties /// summary /// Specifies whether or not the compiler should measure and report /// the compilation times. /// /summary /// value /// see langword=true / if the compilation times should be /// measured and reported; otherwise, see langword=false /. The /// default is see langword=false /. /// /value /// remarks /// para /// Corresponds to the c/CLOCK/c flag. /// /para /// /remarks [TaskAttribute(clock)] [BooleanValidator()] public bool Clock { get { return _clock; } set { _clock = value; } } /// summary /// Specifies whether or not the compiler should generate debug /// information. /// /summary /// value /// see langword=true / if debug information should be generated; /// otherwise, see langword=false /. The default is /// see langword=false /. /// /value /// remarks /// para /// Corresponds to the c/DEBUG/c flag. /// /para /// /remarks [TaskAttribute(debug)] [BooleanValidator()]
Re: [nant-dev] ILASM Task
Gert Driesen wrote: Giuseppe Greco wrote: Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. thanks. I'll look at adding this to the code base shortly. Will you be adding it to NAnt or NAntContrib ? Guess we should discuss what procedure to follow when adding new tasks, or do decide on a task-by-task basis ? Whatever. Obviously it belongs in NAnt.DotNet.Tasks. Its a fairly straightforward command line app wrapper so theres not likely to be any issues putting it straight into core. I'm not convinced that we have to put everything in contrib first if it has an obvious fit in core - ie its a piece of previously missing functionality - I would put any other .net command line tools in this category. Others may have different opinions though. Ian --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
- Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:30 AM Subject: Re: [nant-dev] ILASM Task Gert Driesen wrote: Giuseppe Greco wrote: Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. thanks. I'll look at adding this to the code base shortly. Will you be adding it to NAnt or NAntContrib ? Guess we should discuss what procedure to follow when adding new tasks, or do decide on a task-by-task basis ? Whatever. Obviously it belongs in NAnt.DotNet.Tasks. Its a fairly straightforward command line app wrapper so theres not likely to be any issues putting it straight into core. I'm not convinced that we have to put everything in contrib first if it has an obvious fit in core - ie its a piece of previously missing functionality - I would put any other .net command line tools in this category. Others may have different opinions though. No, I also don't think we should first add tasks to NAntContrib as a rule, but then I think this is something that at least needs to be discussed on a task-by-task basis. Take, for example, this task : If you'd add the task as is to NAnt, and we'd release a new version right now, I'm sure we'd have to make some (breaking) changes to it afterwards... Now, A few remarks on the task itself : - if you want to allow the task to be used on Mono, you need to add a task section to the NAnt configuration file. - the Mono ilasm supports only a very limited commandline interface : Mono ILasm compiler ilasm [options] source-files --aboutAbout the Mono ILasm compiler --version Print the version number of the Mono ILasm compiler /output:file_name Specifies output file. /exe Compile to executable. /dll Compile to library. Options can be of the form -option or /option We can cope with this in two ways : have the task check whether we're on Mono, and disregard some options if we are. Or we could add some FrameworkConfigurable properties that indicate if a given option is supported by ildasm of a given framework. This might be the cleanest solution. - I'd remove the quiet option, and always pass this option to ildasm, unless Verbose is true. Perhaps we could do the same with the debug option, but we'd need to have a way to set the logging level to Debug on a task level. I'll need to look into this a little further. - The following properties should be backed by an int : Alignment, Base, Flags, Subsystem I've defined them as string properties because they are just command-line options... if I had defined them as integers, I would have had to covert them to strings in anyway... j3d. Gert Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
- Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Ian MacLean [EMAIL PROTECTED]; Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:58 AM Subject: Re: [nant-dev] ILASM Task - Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:30 AM Subject: Re: [nant-dev] ILASM Task Gert Driesen wrote: Giuseppe Greco wrote: - The following properties should be backed by an int : Alignment, Base, Flags, Subsystem I've defined them as string properties because they are just command-line options... if I had defined them as integers, I would have had to covert them to strings in anyway... Yeah, but its about strong typing, which prevent mistakes by users. But unless the int value 0 does not have any meaning for these flags, it might perhaps be better to leave them as string, but assign an Int32Validator attribute to these properties. Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Okay guys, I've made the changes you requested... What's about the Mono stuff? j3d. - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Ian MacLean [EMAIL PROTECTED]; Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:58 AM Subject: Re: [nant-dev] ILASM Task - Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:30 AM Subject: Re: [nant-dev] ILASM Task Gert Driesen wrote: Giuseppe Greco wrote: - The following properties should be backed by an int : Alignment, Base, Flags, Subsystem I've defined them as string properties because they are just command-line options... if I had defined them as integers, I would have had to covert them to strings in anyway... Yeah, but its about strong typing, which prevent mistakes by users. But unless the int value 0 does not have any meaning for these flags, it might perhaps be better to leave them as string, but assign an Int32Validator attribute to these properties. Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com // NAnt - A .NET build tool // Copyright (C) 2001-2002 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Giuseppe Greco ([EMAIL PROTECTED]) using System.IO; using NAnt.Core; using NAnt.Core.Attributes; using NAnt.Core.Tasks; using NAnt.Core.Types; using NAnt.Core.Util; namespace NAnt.DotNet.Tasks { /// summary /// Compiles ILASM programs. /// /summary /// example /// paraCompiles chelloworld.il/c to chelloworld.exe/c./para /// code /// ![CDATA[ /// ilasm target=exe output=helloworld.exe debug=true /// sources /// include name=helloworld.il / /// /sources /// /ilasm /// ]] /// /code /// /example [TaskName(ilasm)] [ProgramLocation(LocationType.FrameworkDir)] public class IlasmTask : ExternalProgramBase { #region Private Instance Fields private bool _clock; private bool _debug; private bool _error; private bool _forceRebuild; private bool _listing; private int _alignment; private int _base; private int _flags; private int _subsystem; private string _target; private string _keySource; private FileInfo _keyFile; private FileInfo _outputFile; private FileInfo _resourceFile; private FileSet _sources; private string _options; #endregion Private Instance Fields #region Public Instance Properties /// summary /// Specifies whether or not the compiler should measure and report /// the compilation times. /// /summary /// value /// see langword=true / if the compilation times should be /// measured and reported; otherwise, see langword=false /. The /// default is see langword=false /. /// /value /// remarks /// para /// Corresponds to the c/CLOCK/c flag. /// /para /// /remarks [TaskAttribute(clock)] [BooleanValidator()] public bool Clock { get { return _clock; } set { _clock = value; } } /// summary /// Specifies whether or not the compiler should generate debug /// information. /// /summary /// value /// see langword=true / if debug information should be generated; /// otherwise, see langword=false /. The default is /// see langword=false
[nant-dev] ILASM Task
OK guys, Now the IlasmTask class inherits from ExternalProbramBase... but I'm still unable to get the ilasm task working. I always get the following error message: Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il The arguments list is OK (I've tried it manually and it does function) and the file above exists. Is there something else that I should know? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
What does the generated commandline look like ? Just use nant -v to output it or take a look in the debugger. Ian Giuseppe Greco wrote: OK guys, Now the IlasmTask class inherits from ExternalProbramBase... but I'm still unable to get the ilasm task working. I always get the following error message: Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il The arguments list is OK (I've tried it manually and it does function) and the file above exists. Is there something else that I should know? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Ian, Here's what NAnt reports: [ilasm] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ilasm.exe (/NOLOGO /EXE /OUTPUT=C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il)' in 'C:\Home\Projects\temp\.net\ilasm\OddOrEven' The command-line arguments are fine... I've tested them manually. j3d. What does the generated commandline look like ? Just use nant -v to output it or take a look in the debugger. Ian Giuseppe Greco wrote: OK guys, Now the IlasmTask class inherits from ExternalProbramBase... but I'm still unable to get the ilasm task working. I always get the following error message: Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il The arguments list is OK (I've tried it manually and it does function) and the file above exists. Is there something else that I should know? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
hmm - that commandline does seem ok. I just tested locally with a test .il file. I don't have any other ideas right now but if you want to send me the source I could take a quick look at it. Ian Giuseppe Greco wrote: Ian, Here's what NAnt reports: [ilasm] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ilasm.exe (/NOLOGO /EXE /OUTPUT=C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il)' in 'C:\Home\Projects\temp\.net\ilasm\OddOrEven' The command-line arguments are fine... I've tested them manually. j3d. What does the generated commandline look like ? Just use nant -v to output it or take a look in the debugger. Ian Giuseppe Greco wrote: OK guys, Now the IlasmTask class inherits from ExternalProbramBase... but I'm still unable to get the ilasm task working. I always get the following error message: Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il The arguments list is OK (I've tried it manually and it does function) and the file above exists. Is there something else that I should know? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Ian, Here's the source file. j3d. hmm - that commandline does seem ok. I just tested locally with a test .il file. I don't have any other ideas right now but if you want to send me the source I could take a quick look at it. Ian Giuseppe Greco wrote: Ian, Here's what NAnt reports: [ilasm] Starting 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ilasm.exe (/NOLOGO /EXE /OUTPUT=C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il)' in 'C:\Home\Projects\temp\.net\ilasm\OddOrEven' The command-line arguments are fine... I've tested them manually. j3d. What does the generated commandline look like ? Just use nant -v to output it or take a look in the debugger. Ian Giuseppe Greco wrote: OK guys, Now the IlasmTask class inherits from ExternalProbramBase... but I'm still unable to get the ilasm task working. I always get the following error message: Could not open C:\Home\Projects\temp\.net\ilasm\OddOrEven\MainClass.il The arguments list is OK (I've tried it manually and it does function) and the file above exists. Is there something else that I should know? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com // NAnt - A .NET build tool // Copyright (C) 2001-2002 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Giuseppe Greco ([EMAIL PROTECTED]) using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using NAnt.Core; using NAnt.Core.Attributes; using NAnt.Core.Tasks; using NAnt.Core.Types; using NAnt.Core.Util; namespace NAnt.DotNet.Tasks { /// summary /// Compiles ILASM programs. /// /summary /// example /// paraCompiles chelloworld.il/c to chelloworld.exe/c./para /// code /// ![CDATA[ /// ilasm target=exe output=helloworld.exe debug=true /// sources /// include name=helloworld.il / /// /sources /// /ilasm /// ]] /// /code /// /example [TaskName(ilasm)] [ProgramLocation(LocationType.FrameworkDir)] public class IlasmTask : ExternalProgramBase { #region Private Instance Fields private bool _listing; private bool _quiet; private
Re: [nant-dev] ILASM Task
Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. Do you think it would also be helpful to have the ildasm task? j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Giuseppe Greco wrote: Ach... I knew, in fact I've used writer.Write everywhere, but not in the WriteOptions method because I've copied the 3-lines 'foreach' statement from CompilerBase... By the way, attached to this email you'll find the definitive source file. thanks. I'll look at adding this to the code base shortly. Do you think it would also be helpful to have the ildasm task? Definately. Then you can do cool stuff like disassemble/merge extra code and reassemble using ilasm. Ian j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] ILASM task
Hi all, I've just written the ILASM task, but it does not work (of course, I'm doing something wrong). Giving the following build file: project name=OddOrEven default=build target name=build ilasm target=exe output=OddOrEven.exe sources basedir=. include name=MainClass.il/ /sources /ilasm /target /project ... the output is: [ilasm] Compiling 3 files to 'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'. Microsoft (R) .NET Framework IL Assembler. Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp' , no listing file, to EXE -- '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' Could not open @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp * FAILURE * It looks like the CompilerBase class is not able to find the source files. Attached to this email you'll find the IlasmTask.cs file... What am I missing? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com // NAnt - A .NET build tool // Copyright (C) 2001-2002 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Giuseppe Greco ([EMAIL PROTECTED]) using System.IO; using System.Text.RegularExpressions; using NAnt.Core; using NAnt.Core.Attributes; using NAnt.Core.Types; using NAnt.Core.Util; namespace NAnt.DotNet.Tasks { /// summary /// Compiles ILASM programs. /// /summary /// example /// paraCompiles chelloworld.il/c to chelloworld.exe/c./para /// code /// ![CDATA[ /// ilasm target=exe output=helloworld.exe debug=true /// sources /// include name=helloworld.il / /// /sources /// /ilasm /// ]] /// /code /// /example [TaskName(ilasm)] [ProgramLocation(LocationType.FrameworkDir)] public class IlasmTask : CompilerBase { #region Private Instance Fields private bool _listing; private bool _noLogo; private bool _quiet; private bool _clock; // private FileInfo _keyFile; // private string _keySource; private string _subsystem; private string _flags; private string _alignment; private string _base; private bool _error; #endregion Private Instance Fields #region Private Static Fields private static Regex _classNameRegex = new Regex(@^((?comment/\*.*?(\*/|$))|[\s\.\{]+|class\s+(?class\w+)|(?keyword\w+))*); private static Regex _namespaceRegex = new Regex(@^((?comment/\*.*?(\*/|$))|[\s\.\{]+|namespace\s+(?namespace(\w+(\.\w+)*)+)|(?keyword\w+))*); #endregion Private Static Fields #region Public Instance Properties /// summary /// Specifies whether the compiler should type a formatted listing of /// the compilation result. The default is see langword=false /. /// /summary /// remarks /// para /// Corresponds to the c/LISTING/c flag. /// /para /// /remarks [TaskAttribute(listing)] [BooleanValidator()] public bool Listing { get { return _listing; } set { _listing = value; } } /// summary /// Specifies whether the compiler should suppress logo and copyright /// statements. The default is see langword=false /. /// /summary /// remarks /// para /// Corresponds to the c/NOLOGO/c flag. /// /para /// /remarks [TaskAttribute(nologo)] [BooleanValidator()] public bool NoLogo { get { return _noLogo; } set { _noLogo = value; } } /// summary /// Specifies whether the compiler should suppress the compilation /// progress report. The default is see langword=false /. /// /summary /// remarks /// para /// Corresponds to the c/QUIET/c flag. /// /para /// /remarks [TaskAttribute(quiet)] [BooleanValidator()]
Re: [nant-dev] ILASM task
Guis, I haven't looked at your source in detail yet but I think the problem is that ilasm.exe doesn't support the use of a response file. The core compilers : csc, vbc etc all take an @ argument: @file Read response file for more options And this is what CompilerBase uses to pass the commandline to the compiler tools. ilasm.exe takes no such paramater and thinks that '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' is the path to an il file. You may have to derive from ExternalprogramBase rather than CompilerBase although it will mean duplicating some of the functionality in CompilerBase. Ian Giuseppe Greco wrote: Hi all, I've just written the ILASM task, but it does not work (of course, I'm doing something wrong). Giving the following build file: project name=OddOrEven default=build target name=build ilasm target=exe output=OddOrEven.exe sources basedir=. include name=MainClass.il/ /sources /ilasm /target /project ... the output is: [ilasm] Compiling 3 files to 'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'. Microsoft (R) .NET Framework IL Assembler. Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp' , no listing file, to EXE -- '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' Could not open @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp * FAILURE * It looks like the CompilerBase class is not able to find the source files. Attached to this email you'll find the IlasmTask.cs file... What am I missing? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM task
I don't think it makes much sense to have this task inherit from CompilerBase anyway, no ? - Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Giuseppe Greco [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 11:35 AM Subject: Re: [nant-dev] ILASM task Guis, I haven't looked at your source in detail yet but I think the problem is that ilasm.exe doesn't support the use of a response file. The core compilers : csc, vbc etc all take an @ argument: @file Read response file for more options And this is what CompilerBase uses to pass the commandline to the compiler tools. ilasm.exe takes no such paramater and thinks that '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' is the path to an il file. You may have to derive from ExternalprogramBase rather than CompilerBase although it will mean duplicating some of the functionality in CompilerBase. Ian Giuseppe Greco wrote: Hi all, I've just written the ILASM task, but it does not work (of course, I'm doing something wrong). Giving the following build file: project name=OddOrEven default=build target name=build ilasm target=exe output=OddOrEven.exe sources basedir=. include name=MainClass.il/ /sources /ilasm /target /project ... the output is: [ilasm] Compiling 3 files to 'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'. Microsoft (R) .NET Framework IL Assembler. Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp' , no listing file, to EXE -- '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' Could not open @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp * FAILURE * It looks like the CompilerBase class is not able to find the source files. Attached to this email you'll find the IlasmTask.cs file... What am I missing? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM task
Don't you think that if we inherit from ExternalProgramBase we'd have too many redundancies? j3d. I don't think it makes much sense to have this task inherit from CompilerBase anyway, no ? - Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Giuseppe Greco [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 11:35 AM Subject: Re: [nant-dev] ILASM task Guis, I haven't looked at your source in detail yet but I think the problem is that ilasm.exe doesn't support the use of a response file. The core compilers : csc, vbc etc all take an @ argument: @file Read response file for more options And this is what CompilerBase uses to pass the commandline to the compiler tools. ilasm.exe takes no such paramater and thinks that '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' is the path to an il file. You may have to derive from ExternalprogramBase rather than CompilerBase although it will mean duplicating some of the functionality in CompilerBase. Ian Giuseppe Greco wrote: Hi all, I've just written the ILASM task, but it does not work (of course, I'm doing something wrong). Giving the following build file: project name=OddOrEven default=build target name=build ilasm target=exe output=OddOrEven.exe sources basedir=. include name=MainClass.il/ /sources /ilasm /target /project ... the output is: [ilasm] Compiling 3 files to 'C:\Home\Projects\temp\.net\ilasm\OddOrEven\OddOrEven.exe'. Microsoft (R) .NET Framework IL Assembler. Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Assembling '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp' , no listing file, to EXE -- '@C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.EXE' Could not open @C:\DOCUME~1\GGRECO~1.ECH\LOCALS~1\Temp\tmpB13.tmp * FAILURE * It looks like the CompilerBase class is not able to find the source files. Attached to this email you'll find the IlasmTask.cs file... What am I missing? Thanks, j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] ILASM Task
Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What's your opinion? j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Giuseppe Greco wrote: Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What's your opinion? Its hard to say without seeing what changes you propose making to CompilerBase. There are substantial differences between the supported command args of ilasm and the other compilers. ilasm has no -r flag for example so you will need to hde the references fileset. Why don't you lay out what you think would need to be changed in CompilerBase to make it workable ? Ian j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
- Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:16 PM Subject: [nant-dev] ILASM Task Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What exact functionality of CompilerBase do you need for the ilasm task ? The resource compilation stuff ? What else ? Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Gert Driesen wrote: - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:16 PM Subject: [nant-dev] ILASM Task Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What exact functionality of CompilerBase do you need for the ilasm task ? The resource compilation stuff ? What else ? actually the resource compilation stuff does not apply. the /resources flag of ilasm is for embedding a win32 resource block. .net resources are defined as metadata in the il source. See http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=151718 Ian Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
- Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 4:17 PM Subject: Re: [nant-dev] ILASM Task Gert Driesen wrote: - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:16 PM Subject: [nant-dev] ILASM Task Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What exact functionality of CompilerBase do you need for the ilasm task ? The resource compilation stuff ? What else ? actually the resource compilation stuff does not apply. the /resources flag of ilasm is for embedding a win32 resource block. .net resources are defined as metadata in the il source. See http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=151718 Don't have time to look into this much further, but I don't see CompilerBase and a task for ilasm having much in common ... Gert --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Gert Driesen wrote: - Original Message - From: Ian MacLean [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: Giuseppe Greco [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 4:17 PM Subject: Re: [nant-dev] ILASM Task Gert Driesen wrote: - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:16 PM Subject: [nant-dev] ILASM Task Hi guys, I've given a lock at the CompilerBase and ExternalProgramBase classes... and I think it would be better to modify the CompilerBase class instead of inheriting from ExternalProgramBase... What exact functionality of CompilerBase do you need for the ilasm task ? The resource compilation stuff ? What else ? actually the resource compilation stuff does not apply. the /resources flag of ilasm is for embedding a win32 resource block. .net resources are defined as metadata in the il source. See http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=151718 Don't have time to look into this much further, but I don't see CompilerBase and a task for ilasm having much in common ... I tend to agree. Looking quickly thru compilerBase I see the following attributes/elements: lib references resources modules main win32icon define target -- ilasm uses either /exe or /dll warnaserror In CompilerBase that have no relevance to ilasm. In fact the only thing that would be of any possible benefit is the NeedsCompiling method and even that is full of checks for resources/references etc. I think you'll be much better off using ExternalProgramBase and copying across anything common. Ian --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] ILASM Task
Hi all, are there any plans to implement the ILASM task? j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Its a good idea. Do you feel like taking a stab at it ? Ian Giuseppe Greco wrote: Hi all, are there any plans to implement the ILASM task? j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] ILASM Task
Not immediately because I'm currently under pressure... I'll give a look at it as soon as possible. j3d. Its a good idea. Do you feel like taking a stab at it ? Ian Giuseppe Greco wrote: Hi all, are there any plans to implement the ILASM task? j3d. Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers