| Author |
Message |
Quanzel
Joined: 21 Mar 2013 Posts: 1
|
Posted: Thu Mar 21, 2013 5:10 pm Post subject: Embed System.Windows.Interactivity.dll |
|
|
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 |
|
 |
jessica.ramos
Joined: 23 Apr 2012 Posts: 76
|
Posted: Fri Mar 22, 2013 10:38 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|
|
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