Embed System.Windows.Interactivity.dll

.NET obfuscator and automated error reporting

Embed System.Windows.Interactivity.dll

Postby Quanzel » Thu Mar 21, 2013 4:10 pm

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?
Posts: 1
Joined: Thu Mar 21, 2013 4:05 pm

Postby jessica.ramos » Fri Mar 22, 2013 9:38 pm

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 System.Windows.Interactivity.il /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.
Posts: 542
Joined: Mon Apr 23, 2012 12:13 pm

Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests