Some notes on software development... RSS 2.0
# Thursday, 19 September 2013

Download and install the latest version of DiffMerge 

From the Visual Studio 2010 menu select Tools->Options->Source Control->Visual Studio Team Foundation Server->Configure User Tools

Add the following…

Extension: .*
Operation: Compare
Command: C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe
Argument: /t1=%6 /t2=%7 %1 %2


Extension: .*
Operation: Merge
Command: C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe
Argument: /m /r=%4 /t1=%7 /t2=%8 /t3=%6 /c=%9 %2 %3 %1


Thursday, 19 September 2013 08:54:26 (GMT Standard Time, UTC+00:00)  #    -
Source Control | Visual Studio
# Tuesday, 09 October 2012

The default MSBUILD xml produced by Visual Studio 2010 is missing <Private>True</Private> for the reference.

To fix this simply set the reference Copy Local to False, save the file, then set Copy Local to true.

The correct MSBUILD xml is now produced in the project file.


Stack Overflow - reference dll not copying to bin with deployment project causing error

Tuesday, 09 October 2012 13:48:46 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Tuesday, 17 May 2011

This annoying error gets raised when you are using Visual Studio T4 templates and the template file has a space after the final #> line:


All you need to do is remove the line.

Tuesday, 17 May 2011 21:56:00 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Saturday, 15 January 2011

To change the default browser in Visual Studio 2010 you can use the excellent World of VS Default Browser Switcher extension.

It adds a browser chooser toolbar (View –> Toolbars –> Default Browser Switcher) and ‘View In Browser’ options when .aspx files are right-clicked.

The Toolbar is especially useful for ASP.NET MVC projects as they don’t allow the standard ‘Browse with..’ right-click options

World of VS Default Browser Switcher


World of VS Default Browser Switcher2

Saturday, 15 January 2011 18:24:05 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Friday, 07 May 2010

My current favourite Visual Studio theme is Brad Wilson’s Dark Visual Studio. It is not too gaudy, uses a nice font (Consolas) and is easy on the eye.
For pre-Vista/Win 7 PCs you need to install the Consolas Font Pack for Visual Studio from Microsoft.


Other Visual Studio themes can be downloaded (or designed) from the excellent website.

Brad Wilson's Dark Visual Studio


Friday, 07 May 2010 09:09:50 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Thursday, 21 May 2009

The Pre and Post build events in Visual Studio 2008 run as a batch file so you can check the ConfigurationName variable to only do things for Release mode.
For example, to copy the built files in Release mode to C:\Temp

if $(ConfigurationName) == Release copy $(TargetPath) "C:\Temp"

From StackOverflow

Thursday, 21 May 2009 09:25:53 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Thursday, 23 October 2008

If you get the following error when trying to add a web reference to a project:


try running devenv /ResetSkipPkgs from the command line, it worked for me :)

Thursday, 23 October 2008 12:52:00 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Thursday, 11 September 2008

You cannot arbitrarily change the Target Framework in Smart Device Projects like you can for standard .NET projects.
You need to upgrade the project via the Project->Upgrade Project option like so:



The project will then be compiled against the latest version of Compact Framework, here it is 3.5 for my machine.

Note:- you may need to change the available devices/emulators by choosing 'Change Target Platform' from the same menu.

Thursday, 11 September 2008 11:11:38 (GMT Standard Time, UTC+00:00)  #    -
CF | Visual Studio
# Friday, 05 September 2008

To stop Visual Studio 2005/2008 from loosing breakpoints and behaving erratically when debugging and using the BackgroundWorker control you need to stop the debugger from interacting with the form's thread.
greggm has a more in depth post and other solutions to the problem but for me adding the DebuggerDisplay attribute to the windows form improved debugging.

public partial class Form1 : Form


I haven't tried it but I believe you can un-check the "Call string conversion function on objects in variable windows" from the Debugging section in Visual Studio options:


Friday, 05 September 2008 11:12:45 (GMT Standard Time, UTC+00:00)  #    -
.NET | Visual Studio
# Monday, 04 February 2008

Microsoft Visual Studio 2005 ships with a useful collection of Windows images & icons that can be used with your applications to keep a consistent look and feel with other Windows applications.

For a default installation the zip file is located in the folder: C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary

The images and icons are categorised in to sub folders and each folder contains a very useful Readme.html file that will render the animated images and icons in a browser.

For further info see the MSDN page here: Visual Studio 2005 Image Library

Monday, 04 February 2008 09:19:29 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio

Sign In
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2019
Hadrian Phillips

All Content © 2019, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)