Is there a way to see resources that are in DLL.net

I am trying to debug an Entity Framework error: Unable to load the specified metadata resource.

All the usual fixes do not work for me, and I would like to actually see if the .csdl, .ssdl and .msl files are in the resource (for example, they should be).

If you know a free tool that can do this, answer it.

Note. I do not have access to the Red Gates reflector. I tried Resharper new dotPeek, but it just shows the code, not the resources.

Any idea how I can get these resources that are supposedly in my dll?

+4
source share
2 answers

Try Telerik JustDecompile

They promise it will be free forever

Here's a screenshot of the node resources expanded.

enter image description here

+8
source

I wonder why @George deleted his answer because ILDASM will really show you the resources in the assembly manifest:

.mresource public Model.csdl { // Offset: 0x00000000 Length: 0x00000394 } .mresource public Model.ssdl { // Offset: 0x00000398 Length: 0x00000352 } .mresource public Model.msl { // Offset: 0x000006F0 Length: 0x000002B7 } 

In any case, you spend time waiting for an answer instead of thinking about the tools that you already have. How about writing a simple console application that just shows you the resources included in your assembly?

 using System; using System.Reflection; namespace AssemblyBrowser { class Program { static void Main(string[] args) { if (args.Length != 1) { System.Console.WriteLine("Provide path to assmebly!"); return; } try { var assembly = Assembly.LoadFrom(args[0]); foreach (var name in assembly.GetManifestResourceNames()) { Console.WriteLine("Resource: {0}", name); } } catch (Exception e) { Console.WriteLine("Error: {0}", e.Message); } } } } 
+4
source

All Articles