User Tools

Site Tools


net_development

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
net_development [2017/02/04 01:22] – created - copied from Github wiki shawnnet_development [2017/08/01 22:24] (current) – [Formatting] String to XML code shawn
Line 1: Line 1:
 ===== Enable/disable assembly binding ===== ===== Enable/disable assembly binding =====
  
-> To enable assembly bind failure logging, set the registry value `[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD) to 1.+> 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. > Note: There is some performance penalty associated with assembly bind failure logging.
-To turn this feature off, remove the registry value <code>[HKLM\Software\Microsoft\Fusion!EnableLog]</code>+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: This setting provides additional debugging for the attempted loading of an assembly, including:
Line 14: Line 14:
 ===== byte[] <--> string ===== ===== byte[] <--> string =====
  
-<code>+<code csharp>
 string str = System.Text.Encoding.Default.GetString(byteArray); string str = System.Text.Encoding.Default.GetString(byteArray);
 byte[] bytes = Encoding.UTF8.GetBytes(str); byte[] bytes = Encoding.UTF8.GetBytes(str);
Line 29: Line 29:
   * [[https://msdn.microsoft.com/en-us/library/26etazsy.aspx|Formatting Types in the .NET Framework]]   * [[https://msdn.microsoft.com/en-us/library/26etazsy.aspx|Formatting Types in the .NET Framework]]
   * [[http://stackoverflow.com/q/5017782/1058872|C# DateTime - RFC 3339 format]]   * [[http://stackoverflow.com/q/5017782/1058872|C# DateTime - RFC 3339 format]]
 +
 +==== String -> XML ====
 +
 +<code lang="c#">
 +using (var sb = new StringReader(tokenString))
 +using (var reader = new XmlTextReader(sb))
 +{
 +    reader.Read();
 +}
 +</code>
  
 ==== Tools ==== ==== Tools ====
Line 38: Line 48:
 ==== Using WinMerge in Visual Studio ==== ==== Using WinMerge in Visual Studio ====
  
-Tools –> Options –> Source Control –> Visual Studio Team Foundation Server ->  +//Tools// –> //Options// –> //Source Control// –> //Visual Studio Team Foundation Server// ->  
-Configure User Tools -> Add...+//Configure User Tools// -> //Add...//
  
 Compare arguments: Compare arguments:
Line 59: Line 69:
 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. 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.
  
-  - Tools -> Options -> Environment -> Fonts and Colors+  - //Tools// -> //Options// -> //Environment// -> //Fonts and Colors//
   - Show settings for **Environment Font**   - Show settings for **Environment Font**
-  - Select a font (instead of the default _Automatic_)+  - 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.+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:** **Reference:**
  
   * [[http://stackoverflow.com/a/23126549/1058872|How do I change the font size in Solution Explorer]]   * [[http://stackoverflow.com/a/23126549/1058872|How do I change the font size in Solution Explorer]]
 +
 +==== JSON & JSON Schema ====
 +
 +Visual Studio 2013 includes support for JSON editing, including JSON Schema, as described in //[[http://blogs.msdn.com/b/webdev/archive/2014/04/11/intellisense-for-json-schema-in-the-json-editor.aspx|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 ===
 +
 +  * [[https://visualstudiogallery.msdn.microsoft.com/ede12aa8-0f80-4e6f-b15c-7a8b3499370e|JSLint.NET for Visual Studio]] - extension for VS 2012/13.
 +  * [[http://visualstudiogallery.msdn.microsoft.com/a6932e93-c163-45d6-9992-2fca1b1fe4fd|TextHighlighterExtension2013]] provides additional syntax highlighting and the following JSON features:
 +    * //Relax Mode// - less strict errors/warnings
 +    * //Insert Closing Char// (e.g. braces)
 +
net_development.1486171352.txt.gz · Last modified: 2017/02/04 01:22 by shawn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki