Create .xml and .pdb files from .dll file - c#

I have a .dll file from a Silverlight class library. How can I create a .pdb and a .xml file from this .dll file?

You can't. Whoever supplies the DLL must supply the auxiliary files too.

And if you have the source code you can generate them on your own by making sure you build as debug rather than retail/free.
Why do you want them?

Related

Compile a .dll file of dlib

I want to import a script that uses Dlib. Problem is that it won't compile without .dll file of Dlib.
Is there any way to get it into my project?
I have .lib file but I don't think there is a way to convert that to .dll.
#ali I made a make file of the dlib file using c-make and then used visual basic to compile it but in export setting I changed the. Exe to. Dll

How to merge multiple .cs files into single .dll?

I am converting multiple .IL files into .cs, Now I want to create a single c# project with these .cs files. And then i want a .dll file for this project.
I have already created a c# project. I created a folder "Application" into this project. Now I am moving all the .cs files into this folder. After compiling this c# project i am getting its .dll file into bin folder.
Is this steps correct?
I use the Nuget Package Costura.Fody for it.
It merges everything into the target .exe, but maybe as Class Project it merges everything into one DLL?
You should give it a try:
https://www.nuget.org/packages/Costura.Fody/
The steps are correct as long as the result satisfies the initial task.
What you described sounds legitimate. Now it's your turn to check if the dll works as intended.

Include a dll fil in an exe file

I have an dll file which I have to include in my project. I want to include the file in the exe file, so they just have to download one file!
I didn't find any answer that worked for me!
Try with this ILMerge tool !
This tool can be used to merge multiple .NET assemblies into a single assembly.

Generated .TLB file output directory

I have a compiled c# assembly that I am registering for COM exposure. In order to import my library into some legacy c++ code the .tlb file needs to be in one of my "include" directories.
Instead of adding my bin directory to the include directories of the project that will use it, and since these projects will always be compiled under the same folder structure, I was wondering if, on compile, it was possible to direct my .tlb file to a specific directory.
In the Project Properties under the Build Events there is a Post-build events section. Here you can apply any command you'd like, including copy.
Here's some example code that will copy a file form the bin\Debug directory to another directory in the C:\ drive.
copy "$(TargetDir)\filename.tlb" "C:\output directory path\"
Use XCOPY in a post-build task.

How to use .pdb files for debugging in C#

I have a .dll file and its respective .pdb file. I do not have it's source code. Is it possible to debug the part of code from that dll using .pdb file.
What could be the optimal way to debug using .pdb files.
Thanks
Vijay
pdb's map areas of the binary (exe or dll) to the original source code files. AFAIK They don't contain the code itself so you won't be able to see with source code unless you code files.

Categories

Resources