Answered by:
How to Assemble .il & .resources files to .dll

Question
-
Hi,
I Disassemble a silverlight .dll file (i.e. .dll that i found in the .XAP file), there i got 3 files with extensions like .IL, .res and .g.resources. I updated Some code in the .g.resources file (.XAML code) . now I need to again Assemble them into a .dll. Pls let me know the solution.
Thanks in Advance.
- Moved by SamAgain Tuesday, July 20, 2010 12:48 AM (From:.NET Base Class Library)
Saturday, July 10, 2010 1:58 PM
Answers
-
create a web application then add all the resource files.. then select every single file and go to properties tab.. here change build action to Embedded Resources for every file. It will create a dll of all the resource files
- Marked as answer by Sr.Polineni Tuesday, July 20, 2010 4:17 AM
Thursday, July 15, 2010 8:44 AM
All replies
-
The command line tool ilasm will do that for you.
Saturday, July 10, 2010 5:15 PM -
Thanks for Your Reply,
But this ilasm command is not working. I tryied it.
Monday, July 12, 2010 4:42 AM -
Well given you posted no details (or error messages) on the problem you are having besides "it's not working" the only logical answer I can give is "you're doing it wrong". If you post further information i'd be more then happy to look at it.
Monday, July 12, 2010 5:46 AM -
create a web application then add all the resource files.. then select every single file and go to properties tab.. here change build action to Embedded Resources for every file. It will create a dll of all the resource files
- Marked as answer by Sr.Polineni Tuesday, July 20, 2010 4:17 AM
Thursday, July 15, 2010 8:44 AM -
Hi,
Thanks for your post. I would suggest silverlight with .net forum as a better option.
Please mark the right answer at right time.
Thanks,
SamTuesday, July 20, 2010 12:48 AM -
I have the same problem. When I generate a.il file out of a .dll file I get ~200 .resources files, 1 .bmp, 1 .png and 1 .res. When I generate the signed dll again using the ilasm.exe tool from the command line I can use the /res argument to embedd the .res file but I dont know how to embedd the other ~200 files. I compared the .dll before and after and they differ in size so that should be evidence enough the resources werent embedded right? Any idea? Note that these .DLLs are not output from Visual studio or our regular build process, these are localization .DLLs generated by our LOC team (Translaters).Wednesday, October 2, 2013 1:07 PM
-
As mentioned in 2010, you should ask in one of the Silverlight Developer Centerforums.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Just Karl Tuesday, October 8, 2013 10:08 PM
Tuesday, October 8, 2013 10:08 PM