• .NET

    Cannot discover WCF services in your Silverlight application?

    If you try to add service reference in your Silverlight application and you simply cannot discover any services in the solution using the Add Service Reference tool here is the way how to solve it. Note that the issue occurs both in Silverlight 2 and Silverlight 3 Beta.     1. Uninstall your Silverlight tools for Visual Studio      2. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE or the place you have installed your Visual Studio environment.     3. Delete the file Microsoft.VisualStudio.ServicesProxy.dll      4. Install again Silverlight tools for Visual Studio and note that your file will be created again. There seems to be something wrong with the installer of Silverlight tools, which...
  • .NET

    Visual Studio Tip: Debugging Hints

    November 08, 2008 Share
    Tracking down those pesky flaws in a piece of code is, in my humble opinion, the most challenging part of software development. Thankfully we have a top-notch debugger built into Visual Studio. Unfortunately, the debugger is one of the features of Visual Studio that I am the least proficient with. I know how to set a breakpoint and take a look at the values of my local variables when that breakpoint is reached, but beyond that I'm pretty much clue-less. Well, I was lucky enough to attend John Cunningham's talk at PDC last week and learned quite a few valuable tips that enhanced...
  • .NET

    Visual Studio Tip: Spice Up the IDE

    October 06, 2008 Share
    Developing .NET applications is fun stuff. However, if you're like me sometimes using the same tools every day can get a little boring. That's why I often like to spice things up by changing the look of my IDE. Lucky for us, Visual Studio makes it easy to change the look of your development environment in just a few clicks. By heading to Tools | Import and Export Settings... you can export and save a backup of your current settings (a recommended practice before trying out any new settings) or import new settings from a file. These settings are saved in...
  • .NET

    Visual Studio Tip: Creating Your Own Code Snippets

    September 11, 2008 Share
    I recently blogged about using code snippets as a shortcut to writing more code in less time. In this post, I'm going to walk you through the steps to create custom snippets that you can install into Visual Studio for use in your own projects To get started, let's take a look at the anatomy of a snippet. A snippet is nothing more than an XML file, with a .snippet extension, containing configuration settings. If you open up the file foreach.snippet (located in "<Visual Studio installation directory>\VC#\Snippets\1033\Visual C#") you'll find the following XML, which defines the foreach snippet: As you can see, the XML used to...
  • .NET

    Visual Studio Tip: Using Code Snippets

    September 05, 2008 Share
    A few weeks ago I blogged about creating your own reusable templates for Visual Studio. One of my favorite things about Visual Studio is that it offers a lot of great ways for developers to improve the development experience (and productivity) by adding many extensibility points in the IDE. Now developers have the option of adding on to existing features of Visual Studio with templates and macros, or integrating completely unique features directly into the IDE with add-ins. One of these extensibility features, snippets, adds a ton of value to developer productivity and is incredibly easy to use. Snippets are small, parameterized...