Bugs item #1388338, was opened at 2005-12-22 20:52
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1388338&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Adenosine (adenosine)
>Assigned to: Gert Driesen (drieseng)
Summary: ReferencesThirdPartyAssemblies in Resgen has problems

Initial Comment:
The ReferencesThirdPartyAssemblies function in
ResGenTask.cs doesn't correctly identify situations in
which it needs to copy assemblies to a temporary
directory. I have .resx files with lines like the
following: 

  <data name="_tcLegendNormal.ToothCondition"
mimetype="application/x-microsoft.net.object.binary.base64">
    <value>
    
AAEAAAD/////AQAAAAAAAAAMAgAAAEVHZW5lcmFsLCBWZXJzaW9uPTEuMC4yMTgxLjI0NDg1LCBDdWx0
       
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwFAQAAACBSZWhuLkhDUFMuR2VuZXJhbC5Ub290
       
aENvbmRpdGlvbgIAAAAEX3NpZAVfbmFtZQABCAIAAAAAAAAABgMAAAAACw==
</value>

This is actually a reference to a value in an
enumeration that is contained in another assembly in
the solution, in a different project. When resgen tries
to use it, it throws a SerializationException. This is
because it doesn't match the xpath /root/[EMAIL PROTECTED] and
not(starts-with(@type, 'System.') and
contains(@type,'PublicKeyToken='))] used in the
function to determine if 3rd party assemblies are
needed with the resx file. 

I added the line 

count +=
xpathDoc.CreateNavigator().Select("/root/[EMAIL PROTECTED]").Count;

right after the first xpath statement, and it seemed to
fix the problems with my resource compilation. 

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2006-07-28 10:20

Message:
Logged In: YES 
user_id=707851

I fixed this a while ago, and the fix was part of NAnt 
0.85 RC4.





----------------------------------------------------------------------

Comment By: Adenosine (adenosine)
Date: 2006-05-01 16:29

Message:
Logged In: YES 
user_id=1411141

Sorry, I no longer work for the company that I discovered
this bug while working for, and therefore do not have the
code, so I can't send you a reproduction of the problem. 

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2006-05-01 16:24

Message:
Logged In: YES 
user_id=707851

Wake-up call!

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2006-03-03 19:23

Message:
Logged In: YES 
user_id=707851

Can you please post a full repro, including the referenced 
assembly ?

Thanks !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1388338&group_id=31650

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to