• Randomness

    Visual Studio Automation Using DTE

    • 0 Comments
    Looking to automate Visual Studio tasks? An easy way to figure out what DTE automation commands are supported in Visual Studio is to record macros. This lets you avoid wading through MSDN to find the right command name and syntax. Just hit record on the...
  • Randomness

    Test Automation Snake Oil

    • 0 Comments
    An excellent read on test automation: http://www.satisfice.com/articles/test_automation_snake_oil.pdf . First written in 1996, still very relevant today.
  • Randomness

    DTE Reference Troubles: “Could not load file or assembly EnvDTE”

    • 0 Comments
    Visual Studio has a number of DTE assemblies you can use to extend it. Referencing and using these assemblies within Visual Studio (i.e. as add-ins in the devenv.exe process) works fine. However, if they’re executed in a different process, you might get...
  • Randomness

    Creating a Plug-in System using MEF

    • 0 Comments
    I was developing an application a while ago that required me to add a plugin system. MEF is an excellent way to do this in your app. MEF (the Managed Extensibility Framework) basically allows you to load types from an assembly at runtime, without using...
  • Randomness

    Avoid Debug.Assert Side Effects

    • 1 Comments
    The .NET framework ships with a very useful class called Debug in the System.Diagnostics namespace. You can write code like the following to get a debug message if the application is compiled with the DEBUG flag. Private Sub SomeFunction( ByVal p1...
  • Randomness

    Code Coverage

    • 0 Comments
    Visual Studio 2008 has support for getting code coverage data for your application while running tests. However, you might want to see what corners you hit in your code when simply playing around with your code. This may be necessary, for example, when...
  • Randomness

    Statement Lambdas in Visual Basic

    • 0 Comments
    I'm part of the team that's working on Visual Basic statement lambdas in Visual Studio 2010. In Visual Studio 2008, VB lambdas allowed programmers to write functions as expressions, e.g. as an argument to a method. In Visual Studio 2010, VB now allows...
Page 1 of 1 (7 items)