Monthly Archives: January 2012

C#: Auto-implemented property debugging.

Here is how it can be done using Visual Studio 2010:

  1. Go to the Breakpoint window.
  2. New -> Break at Function…
  3. For the get, type: ClassName.get_PropertyName()

    For the set, type: ClassName.set_PropertyName(PropertyType)

There is a “No Source Available” message when the breakpoint is hit, but you’ll get the calling location in the call stack.

NuGet add-in update

I could not update NuGet using Visual Studio Extension Manager.
Furthermore, there is no easy way to remove NuGet from Visual Studio.

There is another way to remove NuGet from Visual Studio:
Remove the NuGet directory, it is located somewhere in “C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEExtensions” directory and then the latest version can be installed successfully.

NuGet package manager update failed

I could not update NuGet using Visual Studio Extension Manager.
Furthermore, there is no easy way to remove NuGet from Visual Studio.

There is another way to remove NuGet from Visual Studio:
Remove the NuGet directory, it is located somewhere in “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions” directory and then the latest version can be installed successfully.