Re: Re: [nant-dev] BUG solution task throws NullReferenceException
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:22 PM Subject: Re: Re: [nant-dev] BUG solution task throws NullReferenceException Hello Gert, as you may have seen i have derived from the BuildBaseTest class to support such a generalzation. I just thought we could also add these checks for the vc++ tasks themselves, meaning check whether both the cl compiler and the libs are available when a user executes the cl task (so I'm not talking about the unit tests here). Would probably be better, but its not necessary for now ... It is something like asserting the precondition for a test. But the test should not be performed. There is may be a way of doing something like this with the NUnit framework. I may have a look. Don't think so, NUnit 2.2 adds an Ignore attribute, but that won't help up out in this case ... 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
[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