Visual Studio
The tool !
Memory for managed code is handled by the garbage collector, but if you use any kind of unmanaged code, like native resources of any kind, open files, streams and window handles, your application may leak memory if these are not properly handled. To handle such resources the classes that own these in your application should implement the IDisposable interface, and preferably implement it according to the pattern described for that interface. When you suspect a memory leak, the immediate impulse would...
UPDATED Jan 9th: Added link to SQL 2008 R2 SP1 CU4 for ghost file fixRecently there has been several reports on TFS databases growing too fast and growing too big. Notable this has been observed when one has started to use more features of the Testing system. Also, the TFS 2010 handles test results differently from TFS 2008, and this leads to more data stored in the TFS databases. As a consequence of this there has been released some tools to remove unneeded data in the database, and also some fixes...
UPDATED Jan 9th 2012: New versions of Resharper, NuGet and Code Contracts. Added link to a blog post by Grant Holiday on TFS/VS SP’s and hotfixes. Added link to CU4 for SQL 2008 R2 SP1. UPDATED Dec 16th: New version of TFS Power tools, and NuGet UPDATED Nov 28th: Added NuGet, new versions WebEssentials & Beyond Compare UPDATED Nov 11th: Added the cloud update to Visual Studio which includes multistep test steps and bug fixes, updates to TFS and SQL, dotPeek, Test Attachment Cleaner and new version...
We (Mikael Nitell and me) got a whole track on the Norwegian MSDN Live tour this year. We did these as a pair, and covered 4 cities over 4 days, 6 sessions per day, taking 8 hours to come through it. The Islandic volcano made the travels a bit rough, but we managed 6 flights out of 8. The first one had to go by van instead, 7-8 hour drive each way together with other MSDN Live presenters – a memorable tour! Oslo was the absolute top point. We had to change hall to a bigger one. People were crowding,...
One of the 6 sessions I and Mikael Nitell is running on MSDN Live 2010 here in Norway is about Code Quality, and part of that session goes through the use of Code Contracts and Pex. Both fantastic tools ! They can be used together, but are also completely independent from each other, and each can be used single. Code Contracts has to downloaded separately from VS 2010 (works also on VS 2008). Start looking at http://msdn.microsoft.com/e... . This download is a free download....
This issue has popped up for some after having upgraded from Team System Beta 2 to RC. You have remembered to uninstall everything (as Jakob points out here: http://geekswithblogs.net/j... but you still get the following error box: saying Could not load type 'Microsoft.TeamFoundation.C... from assembly 'Microsoft.TeamFoundation.C... Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5...
In Visual Studio the settings for static analysis is done on the project property page, a tab called Code Analysis. You can set which code analysis rules you want to be active. The default in Visual Studio 2008 is to use all. If you run with this default setting you will generate a lot of "noise", since there are a large set of rules. You need to create a set containing the rules you and your team find are suitable for your organization and project. This set you have to apply to every C# project...
There has always been a controversy between modeling and coding. All from the point where models are to be turned into code automatically, through the state where models are written and then forgotten after coding has started, to the point where one generates models from the code. To me, code and model is representations of the same thing - the problem to be solved, or the solution to the problem. And when the solution matches the problem, which sometimes happens, all is well. So the artifacts one...
All these three terms are used to describe the behavior of an application. They come from different process methodologies, and have different meanings, characteristics and are intended to be used differently. Larry Guger also discuss these aspects and several others in his blog entries http://continuouslyintegrat... and http://continuouslyintegrat... The Use Case is...
When I do either Code Analysis, Code Metrics or looking at Code Coverage results, I don't want to have any generated code affecting the results. It just confuses the numbers, and I do not really care how generated code looks - it should just be invisible. Generated code appears several places, code is generated by any of the multitude of wizards and designers in Visual Studio, or it may be generated by a 3rd part tool or generated by a self-written tool. There exist an attribute which, if attached...