The creators of Rational Dev write software programs every day and decided that writing down ideas as we came across them might save us some pain and time in the future. This is a collection of ideas from reading internet articles, books, commerical experience and attempted rational thinking. Hopefully you will join us and provide your own feedback on the ideas presented here.
A list of classes that derive from System.SystemException in the .NET framework. Has brief explanations of that they should be used for.
This larger list is everything derived from System.Exception.
If you get the following error with the Build Notification System Tray program from the Team Foundation Server Power Tools:
"There were errors trying to contact Team Foundation Server http://ServerName:8080/ Object reference not set to an instance of an object."
You probably need to install the latest verison. The most recent version I could find is
If you prefer your own Diff/Merge tool over the standard TFS one, here is how to change the TFS configuration. Personally I use DiffMerge by SourceGear.
Note, you can specify .* for the file type extension to use your merge tool for everything.
Associating a diff tool with a file type in TFS
Common Command and Argument Values for different Diff tools for TFS
I had some fun trying to import:
-- MySQL dump 8.23
--
-- Host: blah Database: blah
---------------------------------------------------------
Which was giving me the strange error, "DROP TABLE IF EXIS' at line"
Turns out you need a space after a comment, so to fix it will be as follows:
-- MySQL dump 8.23
--
-- Host: blah Database: blah
-- -------------------------------------------------------
For a Visual Studio project to display tests in the Test View window it needs to be created as a "Test" project. If you want to see the tests and it was created as some other kind of project originally, you should be able to add the following in the
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Now Visual Studio 2008 should display all your unit tests in the Test View window.
Thanks to this article for helping me out with this one.
Have you ever wanted to use a char as a constant string and tried something similar to below, but can't because const string must be valid at compile time?
const string AcceptCommand = Keys.Enter.ToString();
The closest I have found on how to do this is:
private static readonly AcceptCommand = Keys.Enter.ToString();
Not only does LINQPad let you do lots of nifty things with LINQ, it also has C# and VB.NET scratchpad facilities all for the low price of nothing (an Intellisense licence for LINQPad is available for a small cost).
Silver have a nifty C# snippet compiler. There are .NET 3.5, .NET 2.0 and .NET 1.1 versions. Handy for those times when you want to compile and test something quickly.
This is a nifty poster with the Visual Studio key bindings. It is a good idea to take the time to learn these as it will save you time in the long run.
Microsoft Visual C# Default Keybindings
Do you want to extend the ILog interface to include your own custom logging level?
There is an example of how to do this in the examples that come with log4net. The example creates a Trace level. See examples\net\1.0\Extensibility\TraceLogApp.