Red Gate forums :: View topic - Embedded dependencies and static classes
Return to RSS Feed Available

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

Embedded dependencies and static classes

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

Joined: 17 Aug 2014
Posts: 1

PostPosted: Sun Aug 17, 2014 4:59 pm    Post subject: Embedded dependencies and static classes Reply with quote

Hi RedGate.
First off, thanks for SmartAssembly! It's gorgeous (like all your .NET products)

On thing though:

I'm working with static classes in my rendering engine a lot.
A basic application starts with Engine.Initialize().

Now I encountered a problem using {SA}:
I have embedded (not merged*) several libraries of the SharpDX project.
Now it seems that the dependencies are not unpacked/decrypted when using static classes/methods. I tried to initialize a really simple class of the project before using the static class/method and it works so I guess the dependencies are only getting unpacked when using a constructor.

Doesnt work:

new Object();

Is there any way around that issue (except from creating any instance from that library) or could this get fixed in any way? Is there any manual call I could make in Initialize() to force the unpacking or something simillar?

* I already kind of gave up on merging, it always throws a signature error (System.InvalidOperationException: Signature is not a field signature) any ideas on that? Also, this is not as important to me as the embedding, which is my preferred way to go.

CEO, Tiny Unique Innovations
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