Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

Visual Studio

There are 33 entries for the tag Visual Studio.

An Update on the Effectiveness of MaxPatchCacheSize

Wondering where all the precious free space in your SSD went? Well, here are a few possibilities.

Unit tests for filtering errors in ELMAH

In my previous post, I briefly mentioned the unit tests I created while trying to figure out why my ELMAH filter was not working as expected. Well, here they are for your enjoyment (or idle curiosity).

Use PowerShell to alleviate the pain of code coverage analysis in Visual Studio 2010 and .NET 3.5 solutions (e.g. SharePoint 2010)

This PowerShell script makes it much easier to perform code coverage analysis in Visual Studio 2010 and .NET Framework 3.5 solutions (e.g. SharePoint 2010).

Code coverage analysis with Visual Studio 2010 and .NET 3.5 solutions (e.g. SharePoint 2010)

It takes a little more work than expected, but you actually can "have your cake and eat it too" when it comes to Visual Studio 2010 code coverage analysis and .NET Framework 3.5 solutions (e.g. SharePoint 2010).

Shared files and assemblies in ASP.NET applications (a.k.a. Building TechnologyToolbox.com, part 17)

This post describes a couple of scenarios where you might need to share files and assemblies within an ASP.NET website, as well as some tricks for making this completely painless (from a development and deployment perspective).

Setting up a new Web development project (a.k.a. Building TechnologyToolbox.com, part 2)

Once I settled on using Subtext as the blogging solution for the Technology Toolbox site, I turned my attention to working on the other areas of the site...

"Build Bloat", Part 2 (a.k.a. Removing Extraneous Items from SharePoint Visual Studio Projects)

Last week I received a "Logical Disk Free Space is low" alert from Operations Manager for my TFS 2010 build server (DAZZLER). After a few minutes investigating the issue, I discovered that my "Builds" folder was consuming a little over 2 GB of storage...

Building SharePoint 2010 Solutions on a TFS 2010 Build Server

Last year I wrote a post about building Microsoft Office SharePoint Server (MOSS) 2007 solutions on a Team Foundation Server (TFS) 2010 build server , which talked about copying various SharePoint assemblies to a "Reference Assemblies" folder and adding...

C++ Compiler in Visual Studio 2010 Must Target .NET Framework 4

Another "hiccup" this week after upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010 ... This morning I discovered that when you upgrade a managed C++ project from Visual Studio 2008 to Visual Studio 2010, the project is updated...

Suppress CS1607 Warning for TFS 2010 Builds

Here's another issue I encountered when upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010 ... While it's generally a good assumption that a solution that builds without error in Visual Studio 2008 (and on a TFS 2008 build server...

Building MOSS 2007 Solutions on a TFS 2010 Build Server

After upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010 , my next step was to upgrade various Visual Studio solutions to the 2010 version and ensure they built successfully after the upgrade. Note that during the upgrade, I chose...

Upgrade Team Foundation Server 2008 to TFS 2010 (and SharePoint Server 2010)

In my previous post , I provided an overview of the process of upgrading from TFS 2008 (and Windows SharePoint Services v3) to TFS 2010 (and SharePoint Server 2010). In this post, I provide more details about the upgrade process. Note that if you are...

Upgrade Team Foundation Server 2008 to TFS 2010 (and SharePoint Server 2010) - Overview

This past weekend, I upgraded my Team Foundation Server (TFS) 2008 environment to TFS 2010. I also upgraded the TFS project sites to SharePoint Server 2010. Why the SharePoint upgrade? The TFS project sites previously ran on Windows SharePoint Services...

Save Significant Disk Space by Setting MaxPatchCacheSize to 0

A little over two years ago, I wrote a post about installing Visual Studio 2005 Service Pack 1 , in which I mentioned setting the MaxPatchCacheSize registry setting to 0 (in order to save some significant disk space while installing the service pack)...

Test Projects in Visual Studio 2010 Must Target .NET Framework 4

Last week I installed Visual Studio 2010 on my primary desktop. This morning, I opened my Fabrikam.Demo solution in the new version of Visual Studio, but chose not to upgrade the target framework when prompted by Visual Studio during the solution upgrade...

Bug Deploying SQL Server Database Using VSDBCMD.EXE

Yesterday we encountered a bug while trying to deploy a new SQL Server database from a Visual Studio database project using the VSDBCMD.EXE utility, following the prescriptive guidance on MSDN: How to: Prepare a Database for Deployment From a Command...

The "Copy Local" Bug in Visual Studio

If you've ever worked with me on a Microsoft Office SharePoint Server (MOSS) 2007 project -- or if you've read my Sample Walkthrough of the DR.DADA Approach to SharePoint -- then you've probably seen the following comment: Note: Referenced assemblies...

Recommendations for Code Analysis

In my previous post , I briefly mentioned the Code Analysis feature of Visual Studio in the context of using check-in policies with Team Foundation Server (TFS). However, there's a lot more to talk about with regards to using Code Analysis. If you...

Essential Add-Ins for Team Foundation Server

In a previous post , I mentioned how I use SourceGear's DiffMerge instead of the out-of-the-box tool that comes with Team Foundation Server (which is also called DiffMerge). If you haven't at least evaluated the SourceGear alternative, I definitely advise...

Formatting Code for My Blog

It occurred to me this morning that while I previously shared some details on how I manage my MSDN blog , I've never shared my method for formatting code for the Web. Actually, calling it "my method" is definitely a bit of a stretch. I certainly didn...

Comparing Source Code Branches

During the more than three years I spent helping Agilent Technologies migrate their Internet site from their legacy, proprietary platform to Microsoft Office SharePoint Server (MOSS) 2007, we unfortunately never used Team Foundation Server (TFS). Instead...

Shared Assembly Info in Visual Studio Projects

Yesterday I introduced the concept of linked files in Visual Studio solutions with a follow-up on my recommendation for configuring a custom dictionary to eliminate CA1704 code analysis warnings. Another practical application of linked files is what...

Best Practices for .NET Assembly Versioning

Whenever a new .NET assembly project is created in Visual Studio, a file named AssemblyInfo is created that contains attributes used to define the version of the assembly during compilation. Using assembly versions effectively enables various team...

CA1704 Code Analysis Warning and Using Custom Dictionaries in Visual Studio

In my previous post , I introduced the concept of linking files in Visual Studio solutions. A good use of this feature is specifying a custom dictionary for your solution. Once you enable Code Analysis on your projects, you are likely to encounter...

Linked Files in Visual Studio Solutions

A couple of years ago, I wrote a post introducing my system for structuring Visual Studio solutions . However, I apparently forgot to post a follow-up providing additional details, such as configuring assembly versioning and what I like to call "shared...

DiffMerge - A Better Differencing Tool

Last summer, I added DiffMerge to my Toolbox and I haven't used WinDiff since. DiffMerge can do everything WinDiff can, plus a whole lot more -- like intra-line highlighting, merging, and comparing files using configurable rulesets (although you'll...

Visual Studio Macro for Collapsing All Items in Solution Explorer

Along with my Visual Studio macros for unloading/reloading projects in a solution , another macro that I use just as much, if not more frequently, is my CollapseAllItems() macro: Public Sub CollapseAllItems() Dim solutionExplorer As Window = _...

Visual Studio Macros for Unloading/Reloading Projects

As promised in a post last week, here are the macros that I use to quickly unload or reload dozens of projects in a large Visual Studio solution. Hmmm, perhaps effortlessly is a better word choice -- considering I might need to wait 30 seconds or so for...

Tracing and Logging from Visual Studio Macros

As I mentioned in a post last week, I often use macros in Visual Studio to automate development tasks. Before sharing some of my most frequently used macros, however, I wanted to first introduce the method I use to trace events and log messages while...

Large Visual Studio Solutions and Loading/Unloading Projects

As I noted in my previous post , I typically work with "large" Visual Studio solutions. Note that I put this in quotes, because the definition of "large" will likely vary widely based on your individual experience. Note that I'm not referring to "large...

Bug: Visual Studio 2008 Code Metrics and Referenced Assemblies

Since I seem to be on a roll this morning with blogging, I figured I might as well get one more post in before moving on to my "day job." During the process of authoring a different post earlier today, I stumbled across a bug while using the Code Metrics...

Visual Studio Team System 2010 Week on Channel 9!

Visual Studio just keeps getting better and better! Check out the 20 new videos that will be released over the course of this week announcing the most exciting new features in Visual Studio 2010. The Technical Evanglelists (boy, isn't that a dream...

Structuring Visual Studio Solutions

Over the years, I have refined how I create Visual Studio projects based on lessons learned and new capabilities provided with each subsequent release of Visual Studio. When starting a new project from scratch, I start by creating a blank Visual Studio...