views:

190

answers:

1

I have a flavored c# project and package i can catch the buildbegin event when the dll is building what i want is to embedding some files into the building dll in this event handler

how can i fullfill this task can i just add these files to project file but not displayed in the solution tree?

A: 

See Assembly Linker tool

al.exe MyLib.module /out:MyLib.dll /embed:MyRes.txt
ArsenMkrt
but how can i add these programmingly ?is there exist some property in the project that i can change?great thanks
29decibel
You can add to the project and set file property to embeded resource, but as I guess you don't like it, in the other side you can create a batch file, or call al.exe tool by Process class programitically
ArsenMkrt
thanks for your advise !!
29decibel
it seems to be a probelemwhat i want to embeded to is a dll not a modulehow can i do that?
29decibel
for dll you can build your code by csc.exe with /resource option, but I don't think it is better than adding file to solution tree
ArsenMkrt
finally i put a fragment in the project files,with the "*.xml" to embed multiple files..
29decibel