Red Gate forums :: View topic - Embed System.Windows.Interactivity.dll
Return to RSS Feed Available

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

Embed System.Windows.Interactivity.dll

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

Joined: 21 Mar 2013
Posts: 1

PostPosted: Thu Mar 21, 2013 5:10 pm    Post subject: Embed System.Windows.Interactivity.dll Reply with quote

How can force SA to embed System.Windows.Interactivity.dll ?
This dll is located in my GAC so it doesn't see it as a dependecy and thats why I cannot embed it.

However, System.Windows.Interactivity.dll is a dll file that is installed with Blend and that means that all my users (which do not have Blend) do not have this dll. That results in a failing application.

So how can I force SA to embed this specific dll?
Back to top
View user's profile Send private message

Joined: 23 Apr 2012
Posts: 235

PostPosted: Fri Mar 22, 2013 10:38 pm    Post subject: Reply with quote

Hi Quanzel!

SmartAssembly isn't able to embed this assembly because it's signed with Microsoft's strong-naming key. However, a possible workaround is signing the assembly with a different strong name key:

1. Open a Visual Studio command prompt
2. Navigate to the directory where the dll is located
3. Type "ildasm System.Windows.Interactivity.dl" --this will open the dll in Ildasm
4. In Ildasm, go to File>Dump and click "OK" -- then enter "System.Windows.Interactivity.dll" as the filename and choose the location where you want to save the IL file
5. Go back to the VS command prompt and if necessary, navigate to the IL file's location
6. Type "ilasm /dll /key:YourSNK.snk"
(where YourSNK.snk is the strong name key you'd like to use on the dll)
7. The dll will then be created with the new SNK and you should then be able to merge/embed the assembly

Hope this helps!
Jessica Ramos
Technical Support
Red Gate Software Ltd.
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