Hi Gert,

Finally got some time to tackle this.  I rebuilt the nightly build
nant-0.85-20040328 against .NET framework 1.1.

I tried the same compile script against both the latest nightly build
and nant 0.84.  Both against 1.1 .NET framework.

Same error but different results. See the log outputs below.

The 0.84 result displays the same undiscernable error message, DOES
NOT generate an assembly, and DOES NOT finish compiling .resx files. 
The build script fails in error. 

The latest nightly build displays a more understandable error, DOES
generate an assembly, and seems to finish compiling all the .resx
files in the project.  The build script still fails in error.  The
generated assembly does look like it seems to be okay.  It has all
the attributes that I give it, but am unsure if it really works.  I
have to test it out somehow.


Log output for 0.84:

 Read in 210 resources from
'C:\source\unarchive\Controls\SearchAlertFolder.resx'
                        Writing resource file...  Done.

BUILD FAILED

INTERNAL ERROR

System.ArgumentException: Item has already been added.  Key in
dictionary: "HP.Ecommerce.Americas.Catalyst.adds.resources"  Key
being added: "HP.Ecommerce.Americas.Catalyst.adds.resources"
   at System.Collections.Hashtable.Insert(Object key, Object nvalue,
Boolean add)
   at System.Collections.Hashtable.Add(Object key, Object value)
   at NAnt.DotNet.Tasks.CompilerBase.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]


Log Output for Latest NIghtly Build:

                        Read in 210 resources from
'C:\source\unarchive\Controls\SearchAlertFolder.resx'
                        Writing resource file...  Done.
                        Read in 294 resources from
'C:\source\unarchive\Controls\SearchOrderFolder.resx'
                        Writing resource file...  Done.
                        Read in 28 resources from
'C:\source\unarchive\Controls\WhatsUpWorld.resx'
                        Writing resource file...  Done.
                        Read in 84 resources from
'C:\source\unarchive\Forms\AddAlertWizard.resx'
                        Writing resource file...  Done.
                        Read in 22 resources from
'C:\source\unarchive\Forms\AddJobParticipants.resx'
                        Writing resource file...  Done.
                        Read in 16 resources from
'C:\source\unarchive\Forms\AddJobWizard.resx'
                        Writing resource file...  Done.
                        Read in 28 resources from
'C:\source\unarchive\Forms\AlertRefTypeDetail.resx'
                        Writing resource file...  Done.
                        Read in 40 resources from
'C:\source\unarchive\Forms\JobDetailsForm.resx'
                        Writing resource file...  Done.
                        Read in 28 resources from
'C:\source\unarchive\Forms\JobObjTypRefDetail.resx'
                        Writing resource file...  Done.
                        Read in 28 resources from
'C:\source\unarchive\Forms\JobPropDetail.resx'
                        Writing resource file...  Done.
                        Read in 19 resources from
'C:\source\unarchive\Forms\Post.resx'
                        Writing resource file...  Done.
            error CS1508: Resource identifier
'HP.Ecommerce.Americas.Catalyst.adds.resources' has already been used
in this assembly

BUILD FAILED

C:\Projects\WorkArea\ConfigurationManagement\BuildScripts\ICC_Catalyst\temp_compile.xml(36,4):
External Program Failed:
C:\Windows\Microsoft.NET\Framework\v1.1.4322\csc.exe (return code was
1)

Total time: 11.2 seconds.


I am assuming that there was a fix to a bug related to this in the
latest nightly build in v0.85.  In the latest nightly build should I
ignore this error?  I wouldn't think so.  Look for CS1508 on MSDN
site yielded a valid error that would be of consideration as a failed
compilation.

Thoughts?

Thanks,
Mike

--- Gert Driesen <[EMAIL PROTECTED]> wrote:
> Michael,
> 
> I recently fixed an issue with similar "symptoms", can you try to
> build this
> project using the latest nightly build
> (http://nant.sourceforge.net/nightly/builds) ?
> 
> Gert
> 
> ----- Original Message ----- 
> From: "Michael Dang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 29, 2004 7:56 PM
> Subject: [Nant-users] CSC Output Build Internal Error help
> 
> 
> > Hello,
> >
> > I have been using Nant 0.84 to compile this project for a while.
> > However, today I am getting an internal error.  Can anyone shed
> some
> > light?
> >
> > task being executed is a CSC task and is in the middle od
> compiling
> > resx files.
> >
> > .....
> >        Read in 0 resources from
> > 'C:\source\unarchive\Controls\SearchAlertFolder.resx'
> >
> > Writing resource file...  Done.
> >
> >                                                 BUILD FAILED
> >
> >                                                 INTERNAL ERROR
> >
> >
> > System.ArgumentException: Item has already been added.  Key in
> > dictionary: "HP.Ecommerce.Americas.Catalyst.adds.resources"  Key
> > being added: "HP.Ecommerce.Americas.Catalyst.adds.resources"
> >    at System.Collections.Hashtable.Insert(Object key, Object
> nvalue,
> > Boolean add)
> >    at System.Collections.Hashtable.Add(Object key, Object value)
> >    at NAnt.DotNet.Tasks.CompilerBase.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]
> >
> >
> >
> > My CSC Task.  Shortened to simplify.
> >
> >
> > <csc target="library"
> output="${build.dir.compile}\${assembly.name}"
> >
> > debug="false" optimize="true">
> > <sources>
> > <includes name="${source.dir.unarchive}\**\*.cs"/>
> >
> > <!-- excludes -->
> > <excludes name="${source.dir.unarchive}\Class1.cs"/>
> >
> > <excludes
> > name="${source.dir.unarchive}\Controls\AddJobParticipants.cs"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\AlertManager.cs"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\JobDetails2.cs"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\MaintenanceWindow.cs"/>
> >
> > <excludes name="${source.dir.unarchive}\Forms\JobDetails.cs"/>
> >
> > <excludes
> > name="${source.dir.unarchive}\DataAccess\AlertRefSqlDAC.cs"/>
> >
> > <excludes
> >
>
name="${source.dir.unarchive}\Utility\ListWindowDescriptors\AlertRefType.cs"
> />
> > <excludes
> >
>
name="${source.dir.unarchive}\Utility\ListWindowDescriptors\IListWindowDescr
> iptor.cs"/>
> >
> > </sources>
> > <references>
> > <!-- Built libs -->
> > ...
> >
> > <!-- ThirdParty libs -->
> > ...
> >
> > <!-- Managed libs -->
> > ...
> >
> > </references>
> > <resources basedir="${source.dir.unarchive}" dynamicprefix="true"
> > prefix="${module.name}">
> >
> > <includes name="**\*.resx"/>
> > <includes name="**\*.licx"/>
> > <includes name="**\*.xsd"/>
> >
> > <excludes
> > name="${source.dir.unarchive}\Controls\AddJobParticipants.resx"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\AlertManager.resx"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\MaintenanceWindow.resx"/>
> > <excludes
> > name="${source.dir.unarchive}\Controls\JobDetails2.resx"/>
> >
> > <excludes name="${source.dir.unarchive}\Forms\JobDetails.resx"/>
> >
> > </resources>
> > <arg value="/nowarn:1591,162,168,169,219,108,105"/>
> > </csc>
> >
> >
> > =====
> > Michael Dang
> >
> > __________________________________
> > 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=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Nant-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> 


=====
Michael Dang

__________________________________
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=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to