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.
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.
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();
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.
This is a great link that contains a checklist for your Checkpoints for Software Architecture Document (SAD).
Not having menu options always expanded drives me crazy. Here is a reminder for me and for you on how to make menus always expanded in Office.
In an Office application right click on the toolbar area and select "Customize".
Click the Options tab
Check "Always show full menus"
Click "Close"