> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: maandag 16 mei 2005 22:13 > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] How should resgen task decide whether > to copy 3rd party assemblies? > > > I am using NAnt 0.85 (Build 0.85.1932.0; rc3) > > I am building my project which has a Form that references an > assembly that is not > in the GAC (it's a weakly named assembly). The problem is > that during the csc > task, I am seeing the dreaded error: > > [resgen] error: Specific exception: SerializationException > Message: Invalid ResX > input. ---> SerializationException: Cannot find the assembly > MyCustomStuff.Controls, Version=0.1.243.0, Culture=neutral, > PublicKeyToken=null. > > I looked thru the ResGenTask.cs in the nant source code and > can see that it is a > call to the ReferencesThirdPartyAssemblies method which > determines whether third > party assemblies and resgen.exe should be copied to the tmp > directory used by nant > during the build. The logic that drives this says that if > any data elements in > the Form's resx file has a type attribute whose value doesn't > start with "System", > then there are in fact 3rd party references. In this case > the assemblies and > resgen.exe are copied to the tmp directory and resgen will > run succesfully. > > My problem arises because the resx in question has a data > element in it without a > type attribute, as shown here: > > <data name="thirdPartyControl1.Foo" > mimetype="application/x-microsoft.net.object.binary.base64"> > <value> > /9j/4AAQSkZJRgABAgEAYABgAAD/7RguUGhvdG9zaG9wIDMuMAA4QklNA+0KUm > Vzb2x1dGlvbgAAAAAQ > > c4/MnIqjqlrC8fm7gkg9TyaKKzo83tI8t/kLqc/IMnIpmaKK9bpqWLSUUUCFzR > RRQB//2Q== > </value> > </data> > > So my questions are: > 1. Is the logic in ReferencesThirdPartyAssemblies faulty somehow? > 2. Is this data element malformed, i.e should it have a type > attribute on it? > 3. What causes that to happen and is it stated/explained somewhere? > 4. Since the type attribute is missing, is that a problem the > control's author > needs to rectify? > > > Is this enough information for someone to jump in and offer > some suggestions?
This issue is now fixed in cvs. Gert ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users