I have some weird problem. I am using the <solution> task, and it works on most of my projects. But one of my projects will NOT build the code. It seems to copy an older dll into it. It's a cs project using VS2003. If I build from VisualStudio and do a rebuild, it works as expected, the dll has the correct date/time.
My build file looks like: <target name="clean"> delete dir="${binDir}" if="${directory::exists(binDir)}"/> </target> <target name="build_rel"> <solution configuration="Release"> <projects> <include name="myproject.csproj"/> </projects> </solution> </target> If I do a nant clean, it deletes the bin dir as expected. When I do a nant build_rel, I see: NAnt 0.85 (Build 0.85.1932.0; rc3 4/16/2005) etc etc. Target framework: Microsoft .NET Framework 1.1 Target(s) Specified: build_rel build_rel: [solution] Starting solution build. [solution] Building 'myproject' [Release] ... BUILD SUCCEEDED When I cd bin\Release, and dir, I see my dll with a date of last year's build. WHen I cd ..\.., then nant clean, the bin dir is removed. Then rebuilding it again, I get a date of last year. Since I see nothing about files being compiled or even the number of files being compiled, it's difficult to tell if it's even compiling. Unlike java, which you can tell based on java files compiling to class files, I don't see any .cs files corresponding object files. All I see is the final dll, which has a date of last year no matter how often I clean then build. What's funny is, if I check out a .cs file, add a newline (so it modifies but doesn't change any functionality), save, rebuild, it has the correct date/time (Feb 14). Then I just rebuild it via a nant clean build_rel. ANd it has last year's date/time again! Undoing the checkout keeps last years date/time after clean/rebuilding. I am confused... I am using ClearCase 6, latest Clearcase patches, and using snapshot views for what that's worth... Does anyone have any answers? Is there some undocumented <solution> parameter I can use to force rebuilding? TIA! Marc Towersap Sr. SCM Engineer ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users