Enabling code coverage on TFS 2012—it’s easy

I’m so used to editing test settings to enable code coverage in TFS, that I was surprised how easy it is in TFS 2012. First, inside Visual Studio 2012, code coverage is enabled by default. Those settings go with the unit test explorer, so they rely more on the “runsettings” file—if you even have one….

7

Atlanta Cloud OS and Visual Studio Launch.

I presented a couple of sessions at the Atlanta Cloud OS Launch event—on the “Modern Application Lifecycle” and on DevOps. The Modern Application Lifecycle presentation was high-level, and went over what a modern app is, the timelines for modern “Systems of Engagement” applications, and the application lifecycle that supports them. I believe Matt Nunn recorded…

2

Atlanta Code Camp Slides

I’ve posted my Tips and Tricks slides from Saturday’s session at http://sdrv.ms/KlpvDF. Hope you enjoy them! Also, Zain Naboulsi has a lot of tips for Visual Studio 2010 at https://channel9.msdn.com/Niners/VSTips.

0

Visual Studio 11 Roadshow

Next week, I’ll be presenting at two half-day events—one in Alpharetta, Georgia on Tuesday, and one in Durham, North Carolina on Thursday. If you’re a IT manager or decision maker, a project manager on software projects, a professional developer, or a tester, there should be something at the event for you. The presentation will be…

0

Getting a successful Visual Studio 10 Team Build when Visual Studio 11 is installed locally

I was trying to build a project with the Azure SDK, and the team build was breaking because it couldn’t find the Azure MSBuild targets. Precisely, I was getting this error: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\1.6\Microsoft.WindowsAzure.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the…

0

Having private properties in ASP.NET MVC model objects

I have an ASP.NET MVC project in which I wanted to track which users created an item. I’m already using membership and authorization, so I just have to annotate my controller methods with an [Authorize] tag. I added a “User” property to the model objects I wanted to track, but I didn’t want MVC scaffolding…

0

Analysis Services 2008 R2 Team Build in TFS 2010

If you’ve tried to build a BIDS project in a team build, you’ve noticed that BIDS doesn’t support MSBuild. There are a couple of workarounds for this. Find MSBuild extensions for the various BIDS projects. They’re out there. Run the build through Visual Studio—a “DevEnv” build. I chose the second option. I downloaded the latest…

0

Using a config file to override targets in a Visual Studio test project

I wanted one of my coded UI tests to work in different environments, and to do that I wanted to override one of the URLs. I wanted to set that up in a config file rather than a data source. So, I created my own configuration data class for a custom section in App.Config (MSDN…

0

Opening minidumps in Visual Studio—what to do when you get a “You cannot debug a 64-bit dump of a 32-bit prcess, you must collect a 32-bit dump of a 32-bit process”

John Robbins has a few tips on collecting minidumps in a blog post. Unfortunately,  you typically can’t debug a .NET mindump created on a 64-bit machine by Process Explorer or Task Manager. Satish Arvati describes how to get a 32-bit version of Task Manager launched on a 64-bit machine here, and that solves the problems,…

0

Ways to associate a host name with your machine

I show a lot of web applications on my laptop. One of the nice things about IIS is that you can have multiple host names associated with your machine (like “www.contoso.com” and “ftp.contoso.com” and “finance.contoso.com”), but you can have several sites that only respond to each name. First, you can add the alias to your…

0