User Tools

Site Tools


net_development

Enable/disable assembly binding

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]

This setting provides additional debugging for the attempted loading of an assembly, including:

  • Location of executable
  • Configuration files used
  • Any binding redirects that may be in place
  • Paths searched

byte[] <--> string

string str = System.Text.Encoding.Default.GetString(byteArray);
byte[] bytes = Encoding.UTF8.GetBytes(str);

For more information, see http://stackoverflow.com/a/22085028/1058872

Formatting

TODO: DateTime format string for RFC3339.

References:

String -> XML

using (var sb = new StringReader(tokenString))
using (var reader = new XmlTextReader(sb))
{
    reader.Read();
}

Tools

Visual Studio

Using WinMerge in Visual Studio

Tools –> Options –> Source Control –> Visual Studio Team Foundation ServerConfigure User ToolsAdd…

Compare arguments:

/e /u /wl /dl %6 /dr %7 %1 %2

Merge arguments

/e /u /wl /dl %6 /dr %7 %1 %2 %4

Reference:

Change Solution Explorer font size

There doesn't appear to be a way to change the font for just the Solution Explorer, so you need to change the overall environment font. This will also affect much of the rest of Visual Studio, including tab text, other tool windows, etc.

  1. ToolsOptionsEnvironmentFonts and Colors
  2. Show settings for Environment Font
  3. Select a font (instead of the default Automatic)

You should now be able to select a font size. You may need to restart Visual Studio. The settings took effect for me (in VS2013) immediately on closing the Options dialog.

Reference:

JSON & JSON Schema

Visual Studio 2013 includes support for JSON editing, including JSON Schema, as described in Intellisense for JSON Schema in the JSON Editor.

TIP: Disabling Show errors as warnings (Options → Text Editor → JSON → Advanced) will give you better visibility of syntax errors.

Extensions

net_development.txt · Last modified: 2017/08/01 22:24 by shawn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki