nAviD
nAviD

Reputation: 3261

Locate Blazor Webassembly downloaded .dll files on disk?

I want to locate the .dll files that has been shipped by Blazor (Web Assembly) to browsers like Chrome to see if the .dll files can be read by disassemblers(like Reflector) or not. I found the files in Chrome's

Developers tool(F12) > Application tab > Cache Storage

but can not find them on the disk.

Update : Suppose that I want the get access to some else's Blazor website's .dll files. Where are the following files on website visitor's computer?

enter image description here

and

enter image description here

Upvotes: 10

Views: 3466

Answers (3)

Alexander Higgins
Alexander Higgins

Reputation: 6923

As @Gursharan points out they are saved inside of a binary database stored in %LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache.

If you want to read them from your local disk you need use a utility to read Chrome's binary cache.

Alternately you can download them using the Request URL shown in Chrome's Cache Storage.

For example:

  1. Visit following sample blazor app
  2. Open Application > Cache Storage > blazor-resources/awesome-blazor-browser in Chrome developer tools.
  3. Select a .dll resource.
  4. In the headers tab and highlight the Request URL up until the .dll extension (highlighted in yellow below)
  5. Right click and choose Go To (shown in the bottom screen shot)
  6. If the assembly is signed and trusted it will download automatically. For example, netstandard.dll. Otherwise you need to click keep in the permissions prompt.

Go To enter image description here enter image description here enter image description here

Upvotes: 3

Gursharan
Gursharan

Reputation: 166

You can try this utility - https://www.nirsoft.net/utils/chrome_cache_view.html

On windows Chrome cache location is - C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Cache

This utility work with latest Microsoft Edge for Chrome also. It's cache location on windows is - C:\Users\%USERNAME%\AppData\Local\Microsoft\Edge\User Data\Default\Cache

Upvotes: 2

kshkarin
kshkarin

Reputation: 584

The .dll files will be at the project folder, IIS Express runs the project directly from there, e.g. if on the Developers tool(F12) > Application tab > Cache Storage you see something like /_framework/_bin/Blazor%20WebAssembly.dll.sha256-dTdRmYzYOZYhTcSkqvmzcmpD/Pi03agjQ4oZTOgt8o8= in the name, then it'll be found here when debugging:

<project root>\bin\Debug\netstandard2.1\wwwroot\_framework\_bin

Upvotes: -1

Related Questions