Noah, NAnt currently does a case-sensitive comparison for the macro's.
You should be able to use : $(TargetDir) $(SolutionDir) $(TargetFileName) Does it work in VS.NET when the case does not match exactly ? If so, then I'll update the <solution> task accordingly. Thanks, Gert ----- Original Message ----- From: "Noah Davidson" <[EMAIL PROTECTED]> To: "'Gert Driesen'" <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 8:13 PM Subject: RE: [Nant-users] VS macros Here is the output I get when I run nant. NAnt 0.85 (Build 0.85.1560.0; net-1.0.win32; nightly; 4/9/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/vault/build/nant.build Target(s) specified: compile compile: compile-resources: [solution] Starting solution build. [solution] Building 'Resources' [debug]... [solution] Pre/post event macro $(solutiondir) not implemented. [solution] Pre/post event macro $(solutiondir) not implemented. [solution] Pre/post event macro $(targetdir) not implemented. [solution] Pre/post event macro $(targetfilename) not implemented. '$' is not recognized as an internal or external command, operable program or batch file. [solution] PostBuildEvent failed with exit code = 1 I have tried to set the properties for the macros, but I get the same errors. How do I define the macros in my solution / project tasks? Thanks Noah Davidson -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:05 AM To: Noah Davidson; [EMAIL PROTECTED] Subject: Re: [Nant-users] VS macros Noah, This should work fine (at least it should in the 0.85 nightly builds). Can you send me a repro for this ? Thanks, Gert ----- Original Message ----- From: "Noah Davidson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 7:51 PM Subject: [Nant-users] VS macros I am using the postbuild event in VS. I am passing $(solutiondir), $(targetdir), $(targetfilename), and $(ConfigurationName) to a .cmd file. I am trying to use the solution task and specify the projects. When I run nant I can not seam to define these macros. How can I use this same project file from both nant and VS and use the VS macros. Thanks Noah Davidson ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users