Re: [nant-dev] Custom setting for solution builds planned?
Daniel Hahn wrote: Hello again, I'd like to create ndoc documentation for our project, but at the moment I cannot change the solution/project files as to create the neccessary XML. Therefore I'd like to ask if there are any plans to support overriding project settings in solution builds. (So that I can create the doc XML whith the ant build, without touching the solution files). Of course I'd be also interested in a simple workaround, if there is one ;-) If there are no plans for this, what would be the neccessary steps in implementing it? Bye, Daniel Hi, There is always the risk of turning the solution task into the general swiss army nife. The XML doc gen is actually triggered by configurations in your project files, not the solution file. This means that there is the potential that you would have to build a lot of code and options to support excluding/including sets of projects from XML doc gen and I'm not sure that would be a good idea. A variant of this is to create a new configuration to your projects and set it up correctly for generating XML docs for those projects that needs it. My personal experience with this (and that of my entire project in fact) is that XML docs should be generated in the normal target used for developers (here Debug) since otherwise the XML docs aren't properly maintained and thus the entire idea of generating usefull docs fails. Devs really need to see the warnings both when they work but also on the build server to make it very clear to everyone that the docs aren't up-to-date (or are). /Nicke --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Nant XmlLogger
Title: Message Hi. I have a few questions and thoughts about the XmlLogger facility in NAnt. I'm currently been using 11-15 nightly but basically as long as I've used the XmlLogger to provide data for CCNet there have been all kinds of problems with this logging. As 0.85 seem to draw closer I thought I'd better brought this up before the release rather then after. These are the main problems: 1. None-functional XML structure. This is only indirectly getting me into trouble as other tools relying on the Nant XML file can not figure out what's failing and what's not due to the information structure (or so I've been told). I wonder what lovely things CCNet and other teams could do if this worked. 2. Log file size. I have around 2 MB large logs after each build. Due to item 1 above developers do often not get to know what went wrong from the CCNet so they have to look at the raw log using i.e. IE (please note the rime). Over a 100 MBit connection this takes around 15-30 seconds depending on the computer. But lots of our devs (several hundreds) are using this over a 512k line. It takes ages to load the log file for them and it's also a very slow process to find the relevant information at times. 3. Verbosity Most of the 2 MB log file consists of spam. Empty tags denoting a task running. Worthless INFO and DEBUG style entries. Let me take some examples by giving you a walkthrough of my builds. My main build script begins with a clean task to remove the old build artifacts. Here is the snipplet: foreach item="Folder" property="foldername" in items include name='client\**\bin'/ include name='client\**\obj'/ /items /in do delete dir='${foldername}' / /do /foreach And the log it procuces. target name="clean" task name="foreach" task name="" task name="delete" message level="Info"![CDATA[Deleting directory 'C:\CodeModules\Test\Montgomery\modules\fndadm\client\EventAdministration\bin'.]]/message /task /task task name="" task name="delete" message level="Info"![CDATA[Deleting directory 'C:\CodeModules\Test\Montgomery\modules\fndadm\client\EventAdministration\obj'.]]/message /task /task All of those log entries sums up to quite a few. But what for? The only need I can see is if the task failed, but it's not. A programmer would probably like to see that his delete task is finding it's target and that the code gets ran, but as a end user of nant it becomes an annoyance to have to scroll through. Next my build fetches the latest code from cvs. This time I'm actually interested in what comes out as that will eventually get transformed by CCNet into a build mail and a web page. Here's the snipplet: target name="cvsup" depends="init" exec program="${cvsprog}" commandline="-q ${cvscompress} -d${cvsroot} update -d -P" / /target When this task is logged normal information from CVS is logged as warnings: message level="Info"![CDATA[U Montgomery/modules/fndadm/client/ManageUsers/UserRolePicker.resx]]/message message level="Warning"![CDATA[cvs update: Montgomery/modules/fndbas/model/ImplementationModel/EntityPackages/entitypackage_ArtifactCache.xml is no longer in the repository]]/message CCNet thinking it better alert me will transform this into the Warning section of the email and webpage. But it's an informal message. Now it's time to do the actual compile. I'm using the solution task: solution configuration="Debug" solutionfile="${filename}"/ This is the log result for one of the project (the solution contains around 30 of them): message level="Info"![CDATA[Building 'Ifs.Fnd.Explorer.Interfaces' [Debug] ...]]/message task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / task name="copy" / This then continues with the rest of the 70 or so solutions we have. I can understand that the solution task needs to copy references local, but do the log really
[nant-dev] Nant tests
Title: Message Hi. I've take my time now to test nightly 11-15 and as far as I can tell it's doing it's job just fine. I'm compiling a lot of C# projects some of them are pretty large. No satellite assemblies or any other advanced stuff. Also got quite a bit of other extra code for tests, clean FxCop etc. All seem to work equally well as 11-08 that we have in production. Performance doesn't seem to be any worse or better then 11-08 (not clocked). Take it for what it's worth... /Nicke
RE: [nant-dev] solution changes
Is there a lot done since nightly 11-08? I've got that version deployed in my organisation and it seems to be working just fine (so far). Don't think we have wrapper assemblies, what are those? /Nicke -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: den 12 november 2004 11:55 To: [EMAIL PROTECTED] Subject: [nant-dev] solution changes Hi, I've finally took some time to refactor the way the solution task deals with references. We now also use the tlbimp / aximp tasks to generate wrapper assemblies. With the 0.85 release closing in on us (finally, I know), I'd really appreciate it everyone could check whether there are no regressions. Thanks ! Gert --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Trying to use the nunit2 task with NAnt version 0.8.3 and NUnit version 2.2.0
Hi Eric. I'd like to point out that you are using documentation for the latest nightly for nunit2 task while you are executing it with a pre-historic version of nant. I think you should use the 0.8.3 docs. Don't even think nunit2 existed then. Also, i'm not sure if you are aware of it but a huge amount of fixes in all areas of Nant has been included since 0.84 was released, I can't even begin to imagine how many bugs 0.83 would have. If I where you I'd use the latest nightly and give that a try. If it still won't work then you would be in a much better position to get help on the list. /Nicke Blossom, Eric wrote: I tried using the nunit2 task and nothing happened. On http://nant.sourceforge.net/nightly/help/tasks/nunit2.html I found a runtime stanza to add to my NAnt.exe.config file. After adding that stanza I get the output you see below. My tests work fine in the NAnt GUI and in the NAnt console tool. Is it just a matter of correcting one of the numbers in the runtime stanza? thanks, Eric Blossom BUILD FAILED INTERNAL ERROR System.TypeLoadException: Could not load type NUnit.Core.NullListener from assembly nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77. at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]. ?xml version=1.0 ? !-- Drives NAnt to build Bruce Eric Blossom - November, 2004 -- project name=bruce default=test descriptionMockup of a Workflow Wizard/description property name=nant.settings.currentframework value=net-1.1/ property name=debug value=true / property name=project.name value=Bruce / property name=project.version value=0.1 / property name=build.dir value=build / property name=ourpkg value=com/affymetrix/workflow_wizard_mockup / property name=nunitf.dir value=C:/Program Files/NUnit 2.2/bin / echo message=Using '${nant.settings.currentframework}' Framework/ target name=test description=Unit Tests for Bruce depends=compile-test echo message=testing... / nunit2 verbose=true formatter type=Plain / test assemblies basedir=test/${ourpkg} includes name=Test*.dll / /assemblies /test /nunit2 /target target name=compile-test depends=compile verbose=true csc target=library output=${build.dir}/Form1Test.dll debug=${debug} sources basedir=test/${ourpkg} includes name=*.cs / /sources references includes name=${build.dir}/WorkFlowWizard.exe / includes name=${nunitf.dir}/nunit.framework.dll / /references /csc /target target name=compile description=Compilation depends=prep csc target=exe output=${build.dir}/WorkFlowWizard.exe debug=${debug} sources basedir=src/${ourpkg} includes name=*.cs / /sources /csc /target target name=prep mkdir dir=${build.dir} / /target target name=clean description=remove all generated files delete file=${build.dir}/*.exe failonerror=false / delete file=${build.dir}/*.pdb failonerror=false / delete dir=${build.dir} failonerror=false / /target /project --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] temp leekage
Title: Message Hi. I've been a lazy boy running on nightly 03/24 for much too long. Decided to try out 10/25 today and a few days ago the newest nightly at that time. To my great sorrow there appears to have sneaked in a tricky bug where timing appears to be of essence. Due to the code I have is propritary I can not provide a repo, but I'll try to be as specific as I can anyway. I compile a project usingthe solution taskin Nant nightly 10/25. The snipplet that compiles it is well tested. solution configuration="Debug" solutionfile="${nant.project.basedir}\framework\FrameworkBuild.sln"/ The solution itself contains 38 C# projects. This is the occational error output: [nant] C:\CodeModules\Montgomery\modules\fndwin\packages.build debug Buildfile: file:///C:/CodeModules/Montgomery/modules/fndwin/packages.build Target(s) specified: debug debug: [solution] Starting solution build. [solution] Building 'IFSVSAddInManager' [Debug] ... [solution] Building 'Ifs.Fnd.Data.CodeGen' [Debug] ... [solution] Building 'Ifs.Fnd.Feature.Design.Installer' [Debug]... [resgen] Read in 0 resources from 'C:\CodeModules\Montgomery\modules\fndwin\framework\Design\Ifs.Fnd.Feature.Design.Installer\FeatureInstaller.resx' [resgen] Writing resource file... Done. BUILD FAILED Cannot delete directory 'C:\TEMP\tmp1966.tmp'. The directory is not empty. Total time: 3.2 seconds. BUILD FAILED Nested build failed. Refer to build log for exact reason. Total time: 3.4 seconds. This error message occurs only maybe one in 5-10 times that I compile. It's always complaining with the same type of error, but sometimes the directory's number is different, like "tmp243.tmp" etc. Looking at disk this folder is there in the temp folder. I can remove it without getting an error. I'm assuming somewhere between 03/24 and 10/25 someone did some change to the resgen part of the solution task that resulted in a non-deterministic order of deletion of files in the temp folder and the folder itself.Hence at times not all files are removed in time for when the folder is removed and it then gives this error. With this info is it possible to review the code part to find such a bug or can I do anything else to help reproduce this? /Nicke
Re: [nant-dev] Major performance enhancements landed
Matthew Mastracci wrote: With the help of Gert Dreisen, we've landed some major file-scanning performance changes. You'll find them in any nightly builds from today onward. I'm seeing major CPU usage drops as well as improvements in scanning many filesets. I can now run a full rebuild on an unchanged solution-task-based, 100-project solution in about 2 seconds. :) Some of the major changes include caching and compiling of regexes (avoiding re-creation of the same regex over and over), scanning only the regexes that apply to a given directory and various improvements to the regexes themselves. Give it a shot and make sure it works with your current projects. If you find something breaking, please try to reduce it to a managable testcase before reporting - stuff changes all the time and it may not be related to the regex changes. Ideally, your testcase should consist of a single task with a single fileset and a number of files to select from. Finally, if you are wondering why NAnt is behaving a certain way with your filesets, you can uncomment the DEBUG_REGEXES line in DirectoryScanner.cs to get a full dump of all directory scanning activity (extremely verbose). Matt. Yay! Well done Matthew and Gert! I'll make sure to try it out tomorrow if possible. Hopefully it solves the nasty timing bug I found and reported earlier today :) /Nicke --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] temp leekage
Hi. No, my system is not very slow. It's a P4 3(?) GHz with a HD doing 60-40 MB/s random read. I've tried it both with and without [EMAIL PROTECTED] running and it seemed to make no differance. I've had no extra load on the hard drive though. The hard drive was no where near full. I tried -verbose but ended up getting just successful builds then. But that might have been good fortune as it takes 10 minutes to run each test and I only tried it about 5 times. I'll try to run it more times and use -debug, thanks for the tip! I'll be using the new nightly then, no need to hunt down bugs you guys might have accidentially fixed already. /Nicke Gert Driesen wrote: Has anyone else ran into this issue ? Nicklas, is your system perhaps very slow ? Can you try running the build in debug mode (NAnt.exe -debug -logfile:log.txt), and send me a log of a failed build ? Can you check what's left in that directory after the build failure ? Thanks ! Gert - Original Message - From: Nicklas Norling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 4:05 PM Subject: [nant-dev] temp leekage Hi. I've been a lazy boy running on nightly 03/24 for much too long. Decided to try out 10/25 today and a few days ago the newest nightly at that time. To my great sorrow there appears to have sneaked in a tricky bug where timing appears to be of essence. Due to the code I have is propritary I can not provide a repo, but I'll try to be as specific as I can anyway. I compile a project using the solution task in Nant nightly 10/25. The snipplet that compiles it is well tested. solution configuration=Debug solutionfile=${nant.project.basedir}\framework\FrameworkBuild.sln/ The solution itself contains 38 C# projects. This is the occational error output: [nant] C:\CodeModules\Montgomery\modules\fndwin\packages.build debug Buildfile: file:///C:/CodeModules/Montgomery/modules/fndwin/pack file:///C:/CodeModules/Montgomery/modules/fndwin/pack ages.build Target(s) specified: debug debug: [solution] Starting solution build. [solution] Building 'IFSVSAddInManager' [Debug] ... [solution] Building 'Ifs.Fnd.Data.CodeGen' [Debug] ... [solution] Building 'Ifs.Fnd.Feature.Design.Installer' [Debug] ... [resgen] Read in 0 resources from 'C:\CodeModules \Montgomery\modules\fndwin\framework\Design\Ifs.Fnd.Feature.Design.Installer \FeatureInstaller.resx' [resgen] Writing resource file... Done. BUILD FAILED Cannot delete directory 'C:\TEMP\tmp1966.tmp'. The directory is not empty. Total time: 3.2 seconds. BUILD FAILED Nested build failed. Refer to build log for exact reason. Total time: 3.4 seconds. This error message occurs only maybe one in 5-10 times that I compile. It's always complaining with the same type of error, but sometimes the directory's number is different, like tmp243.tmp etc. Looking at disk this folder is there in the temp folder. I can remove it without getting an error. I'm assuming somewhere between 03/24 and 10/25 someone did some change to the resgen part of the solution task that resulted in a non-deterministic order of deletion of files in the temp folder and the folder itself. Hence at times not all files are removed in time for when the folder is removed and it then gives this error. With this info is it possible to review the code part to find such a bug or can I do anything else to help reproduce this? /Nicke --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Re: temp leekage
There are no files in that directory after it's finished. Only the directory itself remains. /Nicke Matthew Mastracci wrote: What sort of files are in that temp directory after NAnt completes? Nicklas Norling wrote: Hi. No, my system is not very slow. It's a P4 3(?) GHz with a HD doing 60-40 MB/s random read. I've tried it both with and without [EMAIL PROTECTED] running and it seemed to make no differance. I've had no extra load on the hard drive though. The hard drive was no where near full. I tried -verbose but ended up getting just successful builds then. But that might have been good fortune as it takes 10 minutes to run each test and I only tried it about 5 times. I'll try to run it more times and use -debug, thanks for the tip! I'll be using the new nightly then, no need to hunt down bugs you guys might have accidentially fixed already. /Nicke Gert Driesen wrote: Has anyone else ran into this issue ? Nicklas, is your system perhaps very slow ? Can you try running the build in debug mode (NAnt.exe -debug -logfile:log.txt), and send me a log of a failed build ? Can you check what's left in that directory after the build failure ? Thanks ! Gert - Original Message - From: Nicklas Norling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 4:05 PM Subject: [nant-dev] temp leekage Hi. I've been a lazy boy running on nightly 03/24 for much too long. Decided to try out 10/25 today and a few days ago the newest nightly at that time. To my great sorrow there appears to have sneaked in a tricky bug where timing appears to be of essence. Due to the code I have is propritary I can not provide a repo, but I'll try to be as specific as I can anyway. I compile a project using the solution task in Nant nightly 10/25. The snipplet that compiles it is well tested. solution configuration=Debug solutionfile=${nant.project.basedir}\framework\FrameworkBuild.sln/ The solution itself contains 38 C# projects. This is the occational error output: [nant] C:\CodeModules\Montgomery\modules\fndwin\packages.build debug Buildfile: file:///C:/CodeModules/Montgomery/modules/fndwin/pack file:///C:/CodeModules/Montgomery/modules/fndwin/pack ages.build Target(s) specified: debug debug: [solution] Starting solution build. [solution] Building 'IFSVSAddInManager' [Debug] ... [solution] Building 'Ifs.Fnd.Data.CodeGen' [Debug] ... [solution] Building 'Ifs.Fnd.Feature.Design.Installer' [Debug] ... [resgen] Read in 0 resources from 'C:\CodeModules \Montgomery\modules\fndwin\framework\Design\Ifs.Fnd.Feature.Design.Installer \FeatureInstaller.resx' [resgen] Writing resource file... Done. BUILD FAILED Cannot delete directory 'C:\TEMP\tmp1966.tmp'. The directory is not empty. Total time: 3.2 seconds. BUILD FAILED Nested build failed. Refer to build log for exact reason. Total time: 3.4 seconds. This error message occurs only maybe one in 5-10 times that I compile. It's always complaining with the same type of error, but sometimes the directory's number is different, like tmp243.tmp etc. Looking at disk this folder is there in the temp folder. I can remove it without getting an error. I'm assuming somewhere between 03/24 and 10/25 someone did some change to the resgen part of the solution task that resulted in a non-deterministic order of deletion of files in the temp folder and the folder itself. Hence at times not all files are removed in time for when the folder is removed and it then gives this error. With this info is it possible to review the code part to find such a bug or can I do anything else to help reproduce this? /Nicke --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Output target framework at startup ?
Gert Driesen wrote: Hi, I wonder if we should output the name of the target framework when starting a build, and perhaps also output it again whenever you change the target framework What do you think ? Any proposal on where/when to output the target framework ? Gert I think that is a wonderful suggestion. It would also make it easier to handle bugreports I think. /Nicke --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Making the Solution Task extensible
Conor MacNeill wrote: I'd appreciate any feedback on these proposed changes. Would they be interesting to the NAnt project? Are any other changes to the solution task pending? If the NAnt project is interested and once it's all working, I will submit the patches and you can check the changes out in more detail. Thanks Conor Hi Conor. I'm using the solution task a lot at work with rather large solutions (close to 100 projects). I've submitted code for pre/post build events some time ago and have been busy lurking since ;) I think the general idea amongst those that have visiting the code is that it can use an overhaul (what code can't...). Especially so that it would be possible to add options to the solution task as you have described. For me it's not usual to need to override anything, but I can see that it might come in handy at times. The changes you suggest (mostly refactoring if I understand it correctly) seems like good changes to me. As would useful options for overriding default solution behavior. I only have two concerns, one being performance, the second being deviations from VS.NET default behavior when no options are present. As long as performance is not decreased and the solution task works as close to VS.NET solution builds there shouldn't be any problems. From what I know from reading this list there are some planned work. I know Gert started looking for a small task force to do some refactoring of the solution task. I don't know if that was put on ice until 0.85 is out (it's really missed!). Also I know Matthew Mastracci (original submitter of solution task I think) had a few really promising performance enhancements cooking. Last time I checked, performance had dropped 30% since late March, I'm assuming his changes did not (yet) make it to CVS. I'd personally would like to see 0.85 out the doors soon :) Even a nightly it is preferred over 0.84, especially for those using the solution task. I'm available for all kinds of testing verifications of whatever you might come up with, I also have a pretty good picture of demands for at least C#. Unfortunately I'm near as skilled in the details as the real devs around here. /Nicke --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Pre/post build event bug
Title: Message Hi. Someone changed the code in ReplaceMacro in Project.cs for pre/post events to do case insensitve searches, but a bug was introduced. The line: case "$(targetfileName)": // E.g. WindowsApplications1.exe Should read: case "$(targetfilename)": // E.g. WindowsApplications1.exe Observe the caseing in targetfilename. Just out of curiosity, why is this now case-insensitive? /Nicke
Re: [nant-dev] Fwd: Re: AW: [Nant-users] Solution Task and Strong Names
You do as you would in VS, you check the post build event and correct it. Both VS and NAnt creates a bat file to perform the event. You can start a command prompt and run what's in it to debug even further. It's not a nant error specifically, VS would have given you the same error. /Nicke - Original Message - From: Eric Fetzer [EMAIL PROTECTED] To: NAnt Developers [EMAIL PROTECTED] Sent: Friday, March 26, 2004 10:15 PM Subject: [nant-dev] Fwd: Re: AW: [Nant-users] Solution Task and Strong Names Sorry for the cross-posting, if indeed this is one, but I'm getting whined at trying to post to nant-users. I would expect that I'm still a member with the amount of emails I get from the group;0) I'll paste my question in case you can't get this funky Yahoo forward: OK, I changed the path for release mode and get a bit past this. Then It's crashing trying to run the post event macro. The output is: [solution] Building myProject.Library [release]... [solution] Pre/post event macro $(DevEnvDir) not implemented. [solution] PostBuildEvent failed with exit code = 1 [solution] Build failed. Any help? Thanks, Eric And the original question: I am getting the following error trying to build a new project with the solution task: [compile] error CS1548: Cryptographic failure while signing assembly 'd:\myproject\myDll.dll' -- 'Error reading key file '..\..\myproject.myDll.snk' -- The system cannot find the file specified. ' Does solution not support strong names? Thanks, Eric Note: forwarded message attached. __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Windows setup contribution
Hi all. I always package up NAnt in a setup for my developers so I thought I could as well contribute the iss script file I use in case there are more out there that would like it. It uses InnoSetup 4.2.0 http://www.jrsoftware.org/isdl.php which is a totaly free and awsome setup tool. The iss file is designed to be in the root or the release togther with the NAnt.sln file. From there is will zipp up .\bin\*. During install it installs this in a directory, optionally adds a program group and leaves standard uninstall entry in add/remove programs. It does not currently alter the PATH variable, but I hope to find some free prog that will do that. The installer file will be called NAntInstaller.exe and will be placed at the root of the release. I added licence file reference and copyrights as best I could. Hope I got it right. /Nicke NAnt.iss Description: Binary data
[nant-dev] NantContrib installer
Hi again. Also attached the iss for NantContrib. /Nicke NAntContrib.iss Description: Binary data
Re: [nant-dev] Windows setup contribution
Very nice installer! I have some ideas for 1.0 release and I wonder if they can all be implemented with this tool: 1. Binaries should go to Program Files\NAnt\bin and should include *.exe, *.dll but no *.xml (at least not by default) 2. I wonder if we could get rid of the *.pdb since they occupy about 50% of all space used. 3. We should include the documentation. I think that doc/help/**/* is enough. The docs should be either plain *.html or *.chm compressed files (which I personally prefer). PDF would be nice as an option, too because it's easy to print as a reference. Nothing of that sounds impossible. Inno has a Files section where you can add file by file, directories and wildcards. This is what it's designed for. 4. We should also include the SDK docs as an option. Inno has support for componets that you can select. That way parts can be installed. I haven't used it but I'm sure it's not that complicated. Also it's not too difficult to customize things. There is a pascal language for scripting. Very powerfull. /Nicke --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Windows setup contribution
http://www.jrsoftware.org/isfaq.php has a section on changing environment variables (like the path). I've seen it, but I want more. The package made today can be upgraded by simply installing over an existing installation. Then I don't want the PATH to get the Nant dir added again, and again... Also during uninstall I'd like to find the relevant path and remove it. Otherwise the regtrick is pretty nice. Would anyone like to volunteer to create a wrapper task for innosetup? We already have one for an MSI installer in NAntContrib. We also have a setup target that creates an msi installer (creating features for NAnt and NAntContrib). The biggest problem there is the requirements for running the msi task. It is not a trivial thing as you need to have the installer SDK and a few other things. But this is true with the chm creation needing the help 2 sdk also. I agree, the MSI can get messy, and the support today in NAntContrib is difficult to get working. I tried for a few days and gave up. Inno will compile a setup file given a iss file directly from the command line. I don't know if a wrapper is needed. But it can't hurt I suppose :) /Nicke --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Windows setup contribution
Yes, for a release we should not dist the pdb files. That's a effect of the release being built in debug config. Maybe a release should not be debug built? I must say I actually don't really know if there is any particular differance. For fun I sometimes recompile the release with release config and I haven't seen any differance. What is the NAnt SDK? Would that include the parts of the source tree that aren't needed at runtime unless you are building nant? I would assume this would include anything needed to build tasks, functions, or extensions. An example would be the NAnt-NDoc documenters, right? Maybe there should be a more advanced installation option for developers? Not only the binaries for running it, but docs, SDK related stuff, as well as source code. Possibly also setup VS etc. for development. /Nicke --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Windows setup contribution
Yes, for a release we should not dist the pdb files. That's a effect of the release being built in debug config. Maybe a release should not be debug built? The 0.84 release was definitely not built in debug mode (and as a result does not contain the debug files). That's our Gert! I knew it :) I must say I actually don't really know if there is any particular differance. For fun I sometimes recompile the release with release config and I haven't seen any differance. A debug build can debugged ... quite a surprise I guess ;) Ahh yes :) But how much will fall off? Stack trace? Also, does it do optimizations or something else when it compiles in release as opposed to debug. I haven't seen any differance. Ohh well, I'l learn eventually I suppose :) /Nicke --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Possible reference problem
Title: Possible reference problem Hi all. Since 0.84 is so stabile and nice I haven't really take my time to try out all the new good work for the solution task, until today. I must say it's a very impressive work. The solution task is now FAST. A lot faster then the old was. Howevery, I did find a wierd thing with the references, maybe a bug, I don't know. I have this rather large solution with a number of projects included that compiles fine under 0.84. But under 0.85 nightly 20040320 I get: [solution] Building 'Ifs.Fnd.Windows.Forms.Command' [Debug]... BUILD FAILED Couldn't find referenced assembly 'Ifs.Fnd.Windows.Forms.Interfa ces.dll'. after som compiling. Looking at the csproj file in question I can see it is using a file reference: Reference Name = Ifs.Fnd.Windows.Forms.Interfaces AssemblyName = Ifs.Fnd.Windows.Forms.Interfaces HintPath = ..\..\..\..\..\DeployFiles\Ifs.Fnd.Windows.Forms.Interfaces.dll / When I CD to the directory where the csproj file is and do a dir on that path I get a list of that file, it is indeed compiled and deployed in that folder as it should. Nevertheless the HintPath doesn't appear to be working here as it did in 0.84. If I re-run the compilation without first cleaning, it will not complain about the missing assembly. The rest of my code compiles without any problems. Cleaning everything up I retest this using the same solution file and configuration but this time running VS.NET 2003. It compiles everything without complaints. It appears there is a descrepacy between VS.NET 2003 and Nant 0.85 in this respect. The project in question really shouldn't use file references in this case since the assembly it referes to is build into the same project. But as luck has it, it is compiled before and is available for file reference. /Nicke
RE: [nant-dev] NAnt pedantic mode
-Original Message- From: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] Sent: den 17 mars 2004 07:52 To: Matthew Mastracci; Nant-Developers (E-mail) Subject: Re: [nant-dev] NAnt pedantic mode I've run into a number of build-script bugs today that are related to NAnt task properties changing/disappearing/obsoleting/etc. What does everyone think of a command-line flag to put NAnt into pedantic mode? This would throw an error if any build task tried to use a property that didn't exist or was obsoleted. I would personally run in pedantic mode all the time. Ideas? Comments? Flames? :) That's a great idea. I personally find it annoying that I can pass an argument (attribute, fileset) that is ignored because it is misspelled but I get no word of warning. I think that this commandline flag should be also settable at the project level: project strict=true ... /project Jarek Or how about a dry run mode? That way I won't even hav to wait for ages for the code to run through all my stuff. Maybe I don't even need code at all, I can develop/test the script syntax dry. /Nicke --- 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=1470alloc_id=3638op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Bug report
Leslie, what are the minimum steps needed to reproduce this? Can you wrap up a recreatable case please? /Nicke - Original Message - From: Leslie Hanks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 22, 2004 10:01 PM Subject: [nant-dev] Bug report System.NullReferenceException: Object reference not set to an instance of an object. at NAnt.VSNet.Project.Load(Solution sln, String projectPath) at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path) at NAnt.VSNet.Solution.LoadProjects() at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMappings, FileSet excludesProjects, String outputDir) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] Total time: 2.3 seconds. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
RE: [nant-dev] Bug report, solution dies
Title: Message What would happen if you removed the assemblyfolders tag? I can't understand why you need those. You should reference all that in the sln or VS can't compile it anyway. /Nicke -Original Message-From: Bob Peterson [mailto:[EMAIL PROTECTED] Sent: den 17 februari 2004 21:43To: [EMAIL PROTECTED]Subject: [nant-dev] Bug report, solution dies NAnt asked me to send this to you: build: [echo] Building App1 version 0.9 (build #0, repository revision#547) [solution] Starting solution build. [solution] Building DataAccessLibrary [Debug]... BUILD FAILED INTERNAL ERROR System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments,String strLogFile, Boolean bVerbose, Boolean bShowCommands) at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArguments, String logFile, Boolean verbose, Boolean showCommands) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED]. The fragment that caused this was: project name="App1" default="all" basedir="src" ... solution solutionfile="${WORKING_COPY}\src\${nant.project.name}.sln" configuration="${CONFIGURATION}" assemblyfolders includes name="C:\WINDOWS\Microsoft.NET\Framework\**"/ /assemblyfolders /solution The property values are: CONFIGURATION = "Debug" INFORMATIONAL_VERSION = "0.9"BUILD_NUMBER = "0"REVISION_NUMBER = "547"WORKING_COPY = "C:\Documents and Settings\bob\My Documents\Projects\build\trunk\clean" If there's anything else you need to know, or help you'd like to throw my way, I'm right here. Regards, \bob petersonMemento, Inc., 35 Forest Ridge Rd, Concord, MA 01742v: 978.405.2541 f:978.405.2173[EMAIL PROTECTED] YahooIM:memento-bob
Re: [nant-dev] Build Process
Hi Ron. When I looked at it a few month ago the slingshot task appeared not to be maintained. I think the solution task is the way to go. I use if for 30 projects/sln and works great. Good luck to you! /Nicke - Original Message - From: Ron Werner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 05, 2004 10:31 PM Subject: [nant-dev] Build Process I have been working with NAnt the last couple of days, however I have been coming across problems with dependencies. Is there some documentation somewhere that kind of discusses the overall process, and the accepted standard (if there is one) on how to create a .build file. I have also seen some articles on Slingshot and SolutionTask. Is SolutionTask replacing Slingshot? Is the following code example just executed in an XML file: slingshot solution=MySolution.sln format=nant output=MySolution.build parameters option name=build.basedir value=..\bin/ /parameters /slingshot nant buildfile=MySolution.build/ Sorry if these are stupid questions, however I am just getting started with NAnt. Thanks, Ron --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Is the solution task worth the development effort?
Hi. I don't think it's as bad as you think. The solution task is working pretty good for me. There have been a few problems, but most are resolved in 0.84. I don't know of any work in that code for quite awhile. Most of the bug reports I would think has to do with VS not keeping it's sln/csproj files in a decent state. VS let's users cut n' paste project GUIDs etc. which will lead to corrupted solution files. Also some problems are due to the solution task not being able to natively do everything VS can (vdproj e.g.). I don't know enough about Whidbey, but I'm certain that Nant would be usless without the solution task today. /Nicke - Original Message - From: Kræn Munck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 12:09 PM Subject: [nant-dev] Is the solution task worth the development effort? Hi, I was wondering: is it just me or does the solution task seem like a lost cause? 1. It's trying to emulate a complicated black box build process whose inflexibility is more or less the reason we've moved to NAnt. 2. This build process will become open and flexible with Whidbey, rendering the solution task obsolete. I have no idea how many resources is going into the task, but judging by the number of error reports, it must be quite a lot. I can't help but thinking that these resources could be better spent. Just thinking out loud, Kræn Munck --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] SolutionTask
It is not possible to have two identical GUIDs, such a case is an indication of corruption in the csproj file and should not be allowed. VS tries to sort things out (give it a second try if you will) by trying to look at project names and se if that would give a valid and unique combination, that is why corrupt csproj files can sometimes exist in VS, but Nant do not allow it. I did quite a few clean ups trying to fetch corrupted states in the csproj file and emitt good error messages to make it easy for the builder to understand what to do. I must have missed the duplicate GUIDs problem, even though I thought I did put something in there for that. I think Martins patch should go in and I love the error message, very describing giving both the problem and solution. /Nicke Is this the right patch ? if it is possible to have two valid projects with an identical guid should we use a different key for the hash table - perhaps a combination of the guid and the projectname ? Ian Hi all, I found one very annoying feature/bug of solution task: Projects (.csproj) are loaded into hashtable regarding their guid. But if two projects with same guid are loaded, no error/warning is issued and one of those projects disappears! Such projects could be created by copying and renaming existing project into another file. Create new project with Visual Studio generate new guid, so propability to create existing guid is negligible. Small patch to is attached. It checks this key violation rule and throws BuildException when it found one. Regards, Martin --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers /Nicke --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
RE: [nant-dev] Re: [Nant-users] Force csc recompilation
If may be so bold as to add some more to this... I've been thinking of the same thing for the solution task. In VS it's possible to choose Rebuild etc., Nant should add rebuild and clean as virtual targets. It would be a great contribution if all tasks like it could do the same. Good thinking Gert, if I may say so :) /Nicke -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: den 13 januari 2004 15:58 To: Jaroslaw Kowalski Cc: ! nant Subject: Re: [nant-dev] Re: [Nant-users] Force csc recompilation because tasks know how to clean their output, so instead of having a clean target we could actually have a clean mode ... But I'm just thinking out loud here ... Gert - Original Message - From: Jaroslaw Kowalski [EMAIL PROTECTED] To: Gert Driesen [EMAIL PROTECTED] Cc: ! nant [EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 3:45 PM Subject: Re: [nant-dev] Re: [Nant-users] Force csc recompilation You mean the same task used for cleaning? Why? csc output=... buildmode=clean /csc Jarek I don't mind, but we should perhaps consider having a buildmode or something, which can be set to Build (default), Rebuild, Clean, Gert --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Nightly builds
Hi. I was in the process of doing some testing for Clayton on the cvs tasks. I donwloaded the latest nightly build (2004-01-04) and the latest nantcontrib (dated Dec 26). When I compile nant using the binaries that it comes with (my old version of nant did not work since it lacked EE), I get wierd version information from the compiled executables (release config). C:\CVSROOT\Strutsnant NAnt 0.85 (Build 0.85.1447.0; net-1.0.win32; nightly; 2003-12-18) Copyright (C) 2001-2004 Gerry Shaw I'm am certain that I am using the right version, nant only exists in one folder and that is where the newly compiled binaries are. I am also certain that .NET 1.0 is not installed, in fact it has never ever been installed. The nant.exe.config has net-1.1 set as default framework as well. Am I doing something wrong, or are the versions not correctly updated somehow? Also I was not able to compile Nant Contrib at all. It spews out text about obsolete functions and then starts off compiling slingshot and ends with: [echo] Using nant files from C:\Csharp\nant-20040104\build\nant-0.85 prepare: prepare.slingshot: [nant] C:\Csharp\nantcontrib.Tasks-20031226\Tools\SLiNgshoT\SLiNgshoT.build Release Buildfile: file:///C:/Csharp/nantcontrib.Tasks-20031226/Tools/SLiNgs hoT/SLiNgshoT.build Target(s) specified: Release SLiNgshoT.Core.Release: setup: SLiNgshoT.Core: BUILD FAILED C:\Csharp\nantcontrib.Tasks-20031226\Tools\SLiNgshoT\SLiNgshoT.build (72,10): An empty string is not a valid value for attribute 'doc' of csc ... /. Total time: 0 seconds. BUILD FAILED Is this a know problem with Nant contrib at this time? /Nicke --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
RE: [nant-dev] Nightly builds
Hmm, that's no good. In my world it's better with no version at all then wrong version. It's giving me a lot of headache as I can't know, or prove what version I'm using. Nor can I distribute this to my team as I can not later on know weather or not they have upgraded or not. It ought to also give this list problems knowing what version was used. I suggest that the version information is removed until a fool proof way of keeping it up to date is devised. I hope Clayton believes me when I assure him I am using the latest version :) /Nicke -Original Message- From: Martin Aliger [mailto:[EMAIL PROTECTED] Sent: den 8 januari 2004 14:58 To: Nicklas Norling; [EMAIL PROTECTED] Subject: Re: [nant-dev] Nightly builds In header NAnt 0.85 (Build 0.85.1447.0; net-1.0.win32; nightly; 2003-12-18) Copyright (C) 2001-2004 Gerry Shaw net-version and date is hard coded right now. I already report that but noone find any time to fix it yet. Despite of that nant version is correctly built and you could use it without problems! Martin --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] includes performance problem
Hi. I'm trying to construct a dynamic clean task. The clean target looks like this: target name=clean depends=init foreach item=Folder property=foldername in items includes name='**\bin'/ includes name='**\obj'/ /items /in do delete dir='${foldername}' failonerror=false / /do /foreach delete dir=${cvsmodule}\DeployFiles failonerror=false/ delete dir=${cvsmodule}\DevelopFiles failonerror=false/ delete fileset includes name='**\*.suo' / includes name='**\*.user' / includes name='**\*.incr' / /fileset /delete /target The top structure that it will be using consists of 2418 files in 461 folders. The init target only sets a few properties. If there is nothing to delete (fastest case) this piece of code takes 72.8 seconds to run on a P4 2.4 GHz PC with the filesystem on local disk. During that time all CPU is used up, memory allocations doesn't increase. I can see virtually no disk activity at all. The foreach and delete-fileset-includes parts appear to be taking about half the time each. /Nicke --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Build 20031206 problems
Hi. Downloaded the nightly build 20031206 and tried to compile it using NAnt from within a VS .NET prompt. The results: [nant] C:\Csharp\nant-20031206\tests\NAnt.Core\NAnt.Core.build build Buildfile: file:///C:/Csharp/nant-20031206/tests/NAnt.Core/NAnt.Core .build Target(s) specified: build build: [csc] Compiling 42 files to C:\Csharp\nant-20031206/build/net- 1.1.win32/nant-0.84-debug/bin/NAnt.Core.Tests.dll. BUILD FAILED INTERNAL ERROR System.NotSupportedException: The given path's format is not support ed. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boo lean needFullPath) at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Bool ean checkForDuplicates, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA ccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFul lPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Bo olean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean ov erwrite) at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCAL S~1\Temp\tmp30B.tmp\src\NAnt.DotNet\Tasks\CompilerBase.cs:line 413 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tmp\ src\NAnt.Core\Task.cs:line 151 at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tm p\src\NAnt.Core\Target.cs:line 207 at NAnt.Core.Project.Execute(String targetName) in C:\DOCUME~1\ADMINI~1\LOCAL S~1\Temp\tmp30B.tmp\src\NAnt.Core\Project.cs:line 757 at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.t mp\src\NAnt.Core\Project.cs:line 733 at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp30B.tmp\s rc\NAnt.Core\Project.cs:line 782 Please send bug report to [EMAIL PROTECTED] Total time: 0.1 seconds. BUILD FAILED Also tried to get the corresponding NAntContrib but that zip archive was corrupt no matter how hard I tried to redownload and unzipp. Is it just me, or is it Monday? /Nicke --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] CVS tasks buggy
Hi. Started using the two cvs tasks cvs-checkout and cvs-update. There seems to be some problems with these, at least on my sandbox. Using NAnt build 20031125. Using cvs-checkout seems to work just fine, but I can not get any combination of option(s) to turn compression on. Isn't compression supposed to work? Using the cvs-update task all my code, each and every run, will get updated. This is on consecutive runs, nothing has touched the checked out files in-between. TortoiseCVS shows everything as changed when I browse the folders (directly after a checkout or update) if that's any lead... If at all possible, please make compression work for the cvs task. It can be of great importance for many I think. Also very minor, but since I ran into them... A few cosmetics for the docs Checkout task examples at the bottom has begin tag instead of end tag (/cvs-checkout). cvs-update middle example is a cvs-checkout task, also the two at the bottom are missing close tag and have begin tag instead. Thanks for a great work of getting cvs tasks for NAnt! /Nicke --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] CVS tasks buggy
Hi Clayton. Thanks again for implementing the cvs task! I'm writing from home now so I don't have all the test code ready. I'll try to set things up here as soon as I can, but I think this might be a problem with modification date, as you suspected. If I remember correctly I think there was no date stamps in one of the files (Entries?) in the CVS folder, where TortoisCVS does put timestamps. That should stop it from diffing correctly I think? I also tried cvs diff on one file and got no diff back so it probably checks out the correct code (HEAD?). I don't know anything of the zip in the library, but I did notice NAnt's option tag supports only specifying name. E.g. option name=-z6 / would be legal. Keep up the good work :-) Let me know if I can help out with anything. /Nicke - Original Message - From: Clayton Harbour [EMAIL PROTECTED] To: Nicklas Norling [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]Sent: Friday, November 28, 2003 5:43 PM Subject: RE: [nant-dev] CVS tasks buggy Thanks for the feedback Nickle, I have forwarded this on to the sharpcvslib-developers mailing list as well. I will look into exposing the compression option to the nant task. The functionality is in the library, but I will have to check and see how much testing we have done with this. I am not sure off the top of my head what is going on with the update command. I have filed a bug report and will do some testing on this end. In the meantime do you know if the correct sources are being brought down? If so it might be a case of the file modification time being different (or incorrect I guess (-:). I have also updated the documentation in cvs, thanks! Clayton --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Resource and culture problem
Hi dear all. I've ran into a problem I don't quite understand. I hope someone else knows more then me and can help. Compiling a number of projects I'm getting problems with error messages when the output is being used. The error is: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure FndCollapsiblePanel.resources was correctly embedded or linked into assembly Ifs.Fnd.Windows.Forms.CollapsiblePanel. baseName: FndCollapsiblePanel locationInfo: Ifs.Fnd.Windows.Forms.CollapsiblePanel.FndCollapsiblePanel resource file name: FndCollapsiblePanel.resources assembly: Ifs.Fnd.Windows.Forms.CollapsiblePanel, Version=1.0.0.0, Culture=neutral... I've spent a day searching all over for some answer, workaround or something to help but have found nothing, only similar stuff. Checking everything I can possibly think of, such as culture being set to neutral and all kinds of stuff I've found nothing abnormal. Looks like it should work. Compiling the same solution file with VS .NET 2003 gives me other binaries. They vary within a few kb in size. And for this particular dll there is a difference in the embedded resource in the compiled-in Manifest. ILDASM shows the following: NAnt Manifest, resource part: .mresource public FndCollapsiblePanel.resources { } .mresource public Ifs.Fnd.Windows.Forms.CollapsiblePanel.FndCollapsiblePanelBar.resources { } VS .NET 2003 compiled dll, same manifest part: .mresource public Ifs.Fnd.Windows.Forms.CollapsiblePanel.FndCollapsiblePanel.resources { } .mresource public Ifs.Fnd.Windows.Forms.CollapsiblePanel.FndCollapsiblePanelBar.resources { } Is this difference the problem? Is it a result of a bug in NAnt or did I do something wrong somewhere? I ran NAnt nightly build 20031125 in this case. /Nicke --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] FxCop task
Hi all. Now that the solution task have pre/post events and my builds at work are running smothly I was thinking I wanted to do a fxcop tag for easy usage of of the FxCop program. I could see there where activity in this direction earlier on the list and wanteded to know the current position. Is someone doing something like that? If not, can I contribute it? Maybe NAntContributions is a better place for it? /Nicke --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] Internal error building
Hi all. While attempting to build a solution: C:\Harv\Build\src\fndwin\frameworknant -k:net-1.1 -f:Framework.build -l:log.log -debug -verbose debug I get an internal build error: BUILD FAILED INTERNAL ERROR System.NullReferenceException: Object reference not set to an instance of an object. at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection t fc, String outputDir, String path) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp3D6.tmp\src\NAnt.VSNet\P rojectFactory.cs:line 47 This is using build 031021, also tested a few other and got the same result. I'm attaching the log and solution file compressed. More information available upon request. /Nicklas Norling Log.zip Description: Binary data
Re: [nant-dev] solution tag and references revisited
Hmm, the plot thickens... Seems the reason the build using projects and no solution file stopp is because of string projectExt = Path.GetExtension(path).ToLower(CultureInfo.InvariantCulture); In the ProjectFactory class method LoadProject(), the path variable is null for some strange reason. /Nicke - Original Message - From: Nicklas Norling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 25, 2003 8:43 PM Subject: [nant-dev] solution tag and references revisited Hi all. I'm trying to get the solution tag to work for me. I have a tag with ~30 .csproj files included and it won't compile, nor will the sln file with the same amount of projects. Nothing fancy, things just some dependencies. This is what I get: BUILD FAILED INTERNAL ERROR System.NullReferenceException: Object reference not set to an instance of an obj ect. at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path) at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlEleme nt elemReference, SolutionTask solutionTask, String outputDir) at NAnt.VSNet.Project.Load(Solution sln, String fileName) at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path) at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlEleme nt elemReference, SolutionTask solutionTask, String outputDir) at NAnt.VSNet.Project.Load(Solution sln, String fileName) at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path) at NAnt.VSNet.Solution.LoadProjects() at NAnt.VSNet.Solution..ctor(ArrayList projects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMaps, Fi leSet excludesProjects, String outputDir) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] This is 031021 nightly build with my build event patch. I've been trying to read the code flow, but I can't figure out what it's doing trying to resolve references. I put some debug code in the Reference.cs file and it turns out the last project it loads has 5 project references and 8 file references (system stuff). Yet the debug message in the constructor for Reference is getting emitted much more, maybe 3-4 times the number of references. Using the sln file I get another problem, it complains it doesn't find output from a dependent project, and rightly so as it has yet not compiled it. I can't figure that one out either. At least not yet... I observed some strangeness in the regexp in the solutionfile-provided version of the Solution class constructor. It appears to be matching dependencies in a VS .NET 2002 file, but doesn't catch those from a VS .NET 2003 file due to changes in the file formats. Also at least VS .NET sln files do not always have dependencies in the sln file, but they may be in the projects included. Have not figured out why this is so, but my sln that errors out has no dependencies in the sln file. Is this a known problem or am I catching ghosts? Is anyone looking into any part of this code to do some work? I'd love to get as much info as possible so I can get my code compiled. I'll be more then happy to contribute, but if someone feels more able to handle this I could sure use some help :) Thanks in advance! /Nicke --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers