Red Gate forums :: View topic - Smartassembly playing together with Dependency Injection
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

Smartassembly playing together with Dependency Injection

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



Joined: 13 Feb 2011
Posts: 11
Location: Germany

PostPosted: Tue May 10, 2011 2:40 pm    Post subject: Smartassembly playing together with Dependency Injection Reply with quote

Hi there,

we have several services which need to be obfuscated (name-wrangling as well as control-flow obfuscation as well as other features like embedding, pruning etc but not as necessary as first two points).

The problem we are facing is that we have some assemblies loosely coupled and no direct reference between the assemblies. While we are not able to set references inside smartassembly by hand - what can we do to set those references so that we could embed our assemblies? Or are there different ways to obfuscate more than 1 main assembly inside of smartassembly?

I am aware of the fact, that it sounds a bit controversial having dependencies which are loosely coupled embedded into assemblies. This is mainly because we face different provider for different customer and different production environments.

Thanks in advance,
kind regards,

Marcus
Back to top
View user's profile Send private message
ShortAngry



Joined: 02 Dec 2010
Posts: 14

PostPosted: Tue May 10, 2011 4:06 pm    Post subject: Reply with quote

From what I understand, SA will automatically pick up on directly referenced assemblies but it sounds like in this instance you may have to create separate projects for each of the loosely coupled assemblies.

I would start with all the SA options turned off and slowly turn features on one by one until you either get the protection you want or hit a specific problem. If you do hit a specific problem you can usually work around it by using custom attributes as detailed here: http://www.red-gate.com/supportcenter/Content?p=SmartAssembly&c=SmartAssembly/help/6.0/SA_UsingCustomAttributes.htm&toc=SmartAssembly/help/6.0/toc.htm

If you find you're unable to do this, you might want to contact support @ red-gate.com directly.
Back to top
View user's profile Send private message
nkilian



Joined: 10 Dec 2009
Posts: 11
Location: South Africa

PostPosted: Sun May 22, 2011 10:06 am    Post subject: Reply with quote

I'm encountering a similar problem.

We access some assemblies in our application only through reflection, and even though we have a project reference to the assembly in Visual Studio (and TFS builds this reference for us and deploys it to the drop folder), SA doesn't identify it as a dependency.

As a workaround, somewhere in the executing assembly we force a dependency by declaring a variable as a type in the target assembly.

But it would be great if SA would allow us to include these unused references as dependencies so we can embed and optionally obfuscate and prune them.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kimpenhaus



Joined: 13 Feb 2011
Posts: 11
Location: Germany

PostPosted: Sun May 22, 2011 10:46 am    Post subject: Reply with quote

We went away from using Ninject.Xml Extension and are using now small binding modules. This is of course more secure (and fits {sa} needs while depenedencies are now linked in) but at cost of flexibility.
This is in case of that our production system, q&a system and development system use different adapter for binding against an archive system - so we need do deploy different builds to different systems, which is meant to make mistakes...as murphy will say.
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