Debugging like a Pro in Visual Studio

,
September 6, 2018 / No Comment

Viewing method return values in the Locals/Autos windows in Visual Studio
Visual Studio is packed with tons of great debugging tools. There are so many tools that it’s often hard to keep track of them all. Simply knowing about a tool can make a significant improvement to your productivity. In this post, we’ll look at how you can examine […]
Read more

AUTHOR: CATEGORY: Blog, C#, LINQ, Visual Studio

Error: “Predefined type ‘System.ValueTuple’ is not defined or imported”

,
April 10, 2017 / No Comment

As soon as you start programming tuples in C# 7.0, you are likely to encounter the compiler error, “Predefined type ‘System.ValueTuple’ is not defined or imported.”
 
This issue is easily corrected. When encountered, the error will look like this on the code editor:

The issue is that the C# 7.0 compiler is trying to generate the underlying […]
Read more

Creating a Fody Add-in

,
September 22, 2016 / 1 Comment

Fody is a fantastic framework for creating IL weavers. For those who are unfamiliar with IL weaving, it is the art (and at times a seemingly magical incantation) of modifying an assembly post-compile. In this article we will walk through creating a library that can modify an existing .NET assembly.
Let’s start by looking at what actually happens when you […]
Read more

AUTHOR: CATEGORY: .Net, C#, Visual Studio

How I Became A Vim Rockstar In Visual Studio

,
September 23, 2015 / 1 Comment

A Brief History Lesson
As a software developer, we spend a lot of our time using text editors. Most text editors follow the Emacs standard that harkens all the way back to the 1970s and the venerable PDP-10. Emacs’ WYSIWYG style of editing is best suited to a stream-of-consciousness and linear style of editing. The focus is, foremost, on being […]
Read more

AUTHOR: CATEGORY: Blog, C#, Visual Studio

Relative Paths for Visual Studio Generic Tests

,
October 20, 2013 / No Comment

To make generic tests robust enough to run for all developers on your team and on the build server, you are likely going to want to avoid hard coding the path to the executable.  To do this successfully, you need to have a list of all the environment variables that are available when the test executes.  These can be obtained […]
Read more

AUTHOR: CATEGORY: .Net, ALM, Blog, C#, Visual Studio

Visual Studio 2012 Presenter Mode

,
November 9, 2012 / 1 Comment

For those of us frequently presenting, we are faced with having to switch to presenter fonts by changing the font size for multiple different display items on the Environment->Fonts and Colors Options dialog or (if we are looking for an adequate but not optimal solution) simple changing the zoom level.  Of course, when we get back to our desks, we […]
Read more

AUTHOR: CATEGORY: Blog, Visual Studio

Turning on Continuous Testing in Visual Studio 11

,
March 2, 2012 / No Comment

The new unit testing explorer support has a new unit test explorer has a Run dropdown for selecting which text to execute (see Figure 1).
In addition, Visual Studio 11 supports continuous testing – automatically running your tests every time you compile your code.  However, as shown in Figure 1, the option to enable continuous testing doesn’t appear from the […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#, Visual Studio

Visual Studio 11 Search Everywhere

,
February 29, 2012 / No Comment

One feature new to Visual Studio 11 that you will wonder how you managed without (perhaps instead you wondered why it was missing from Visual Studio for so long) is the concept of “Search Everywhere.”  In Visual Studio 11 search is now supported for the following:

Solution Explorer*
Add Reference*
Integrated Quick Find*
New Test Explorer
Error List
Read more

AUTHOR: CATEGORY: .Net, Visual Studio