Tag: .Net

  • Fun With the GAC

    The .Net GAC (Global Assembly Cache). It’s where all shared .Net components can live. However, if you have to step through the code of one of these assemblies things can get exciting… Let’s say that I have a Business Object dll named business.dll and I have it in my GAC. And a project in which […]

  • Debug NUnit Tests With Visual Studio

    1. Set a break point in a unit test 2. Open NUnit 3. In Visual Studio, go the tools Menu and choose Attach to Process (or Ctrl-Alt-P) 4. Choose nunit out of the list 5. Run tests. Make sure you run the test where your breakpoint is if you don’t run all tests.

  • JScript.Net and C# Interaction

    // lib.cs: using System; namespace Library {   public class TestLib {     public static void speak(){        Console.WriteLine(“Hello From CSharp Dll”);     }   } } // hello.js import System; import Library; var a = {name:’JScript Object in Exe’}; a.foo = function (){   Console.WriteLine(‘Hello From ‘ + this.name); }; a.foo(); TestLib.speak(); Compiling: 1. […]

  • Write and Validate XML with a DTD in Memory in .Net

    This is the sample of piecing together a lto of different posts, so I thought I’d put a sample on the web… I’m putting it in VB.Net (because I was writing in it due to project requirements Imports System.Xml Imports System.Xml.Schema Imports System.Text Imports System.IO Public Class MyXMLTool   Private sb As New StringBuilder(“”)   Private […]