.resx & .resource files, Form.Icon, Visual Studio treats first class in source file specially, fuslogvw
I tried to set the From Icon property for Windows.Forms application and got a MissingManifestResourceException. After spending too much time looking for complexities in the resource space, the problem turned out to be a probable Visual Studio .NET bug.
Form1.cs will automatically get a Form1.resx file which is an XML file containing the serialized resource values. The name of the compiled .resource file turns out to come from the full class name of the first class defined in the file! This is a problem if you’ve defined some helper class before your derived Form class. A simple work around is to move the derived Form class back to the top of the file.
typeof(object).Assembly – returns the assembly where the object’s type is defined.
Assembly Binding Log Viewer (FusLogVW) – shows what assemblies are actually loaded by a program and from where.
Putting the following in foo.exe.config allows referenced assemblies to be found in a private subdirectory “Stringer”.
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="Stringer"/> </assemblyBinding> </runtime></configuration>