CorFlags, GetAssemblyName

CorFlags.exe is a tool that comes with VisualStudio and it is made to determine and change the CorFlags section of the header of a portable executable file (PE image). Run it from the VS command shell.

Here is how to interpret the flags.

000638
000639

Copied from here.

You can also use the PowerShell with this command to get related information:

 [reflection.assemblyname]::GetAssemblyName("${pwd}\xyz.dll") | fl

In the output, ProcessorArchitecture identifies the target platform.

  • Amd64: A 64-bit processor based on the x64 architecture.
  • Arm: An ARM processor.
  • IA64: A 64-bit Intel Itanium processor only.
  • MSIL: Neutral with respect to processor and bits-per-word.
  • X86: A 32-bit Intel processor, either native or in the Windows on Windows environment on a 64-bit platform (WoW64).
  • None: An unknown or unspecified combination of processor and bits-per-word.
  • From here.

Dependency Walker, dumpbin and ldd

The old depends.exe is not working on Windows 10 at all. It hogs all processor power and hangs. There is an open source replacement called dependencies, though. That one also works on Win 10.

But for fast checking of dependencies of a certain dll, you can also use dumpbin, which comes with Visual Studio. Just open the command line from VS, and put this into the shell:

dumpbin  /dependents path\to\your.dll

If you’ve got a git-bash with version >= 2.18 on your windows machine, then ldd can do the same for you.

ldd   ./path/to/your.dll

Bee Stings <%$, <%@, <%=, <%#

In aspx files you can use several different tags for embedded code blocks, also called inline code blocks. If you tend to forget what they all mean, here is a short explanation with further links. And here is a longer explanation from MS.

To set a Text of a Label to a resource called Pres in the App_LocalResources for your current page, you shall use this syntax: Text="<%$ Resources: Pres %>". Spaces are optional.

Similarly, to access a resource called Volume in the App_GlobalResources folder in a file called Msg.resx you shall use this syntax: Text="<%$ Resources: Msg, Volume %>". Spaces are optional.