Xml Serialization Can't find embedded assembly

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Xml Serialization Can't find embedded assembly

Postby JohnRedGater » Wed Jul 27, 2011 5:38 am

I embedded an assembly into my main assembly and another assembly (a plugin) references it. I am getting the following error:

System.InvalidOperationException
Unable to generate a temporary class (result=1)
error CS0012:The type "......" is defined in an assembly that is not referenced. You must add a reference to assembly "...."

This is happening in the System.Xml.Serialization.Compiler.Compile

It appears the Xml Serialization doesn't can't find the embedded assembly. Is there a way to correct this?
JohnRedGater
 
Posts: 10
Joined: Mon Jun 27, 2011 7:53 pm

Postby Chris.Allen » Thu Jul 28, 2011 10:02 am

You may find you get better results by merging this assembly rather than embedding it...
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Chris.Allen » Fri Jul 29, 2011 11:38 am

Any luck?
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 2 guests