Red Gate forums :: View topic - Xml Serialization Can't find embedded assembly
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Xml Serialization Can't find embedded assembly

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
JohnRedGater



Joined: 27 Jun 2011
Posts: 10

PostPosted: Wed Jul 27, 2011 5:38 am    Post subject: Xml Serialization Can't find embedded assembly Reply with quote

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?
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 586

PostPosted: Thu Jul 28, 2011 10:02 am    Post subject: Reply with quote

You may find you get better results by merging this assembly rather than embedding it...
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 586

PostPosted: Fri Jul 29, 2011 11:38 am    Post subject: Reply with quote

Any luck?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group