Skip to main content

Posts

Team Explorer is Included in Visual Studio 2010

I noticed yesterday after installing Visual Studio 2010 on my home system that Team Explorer is included.In previous releases, Team Explorer (the client for TFS) was a separate installation.  In VS 2010, it’s now included in the setup for Visual Studio Professional, Premium, and Ultimate.  This means you don’t have to run the stand-alone Team Explorer setup afterwards.  A separate installation package still exists for users who need to interact with TFS but don’t need all the other features of Visual Studio.

Testing waithandles in MSTest

For a client I needed to write a parallel execution mechanism that executes multiple tasks at the same time on different threads but further execution had to wait before all threads signals complete. In this situation, synchronization becomes very important,  so I used the WaitHandle classes to implement this functionality. As no code is complete without good unit tests, I added a test to validate the behavior of the waithandles: 1: [TestMethod] 2: public void Waithandle_Should_Wait_Until_All_Tasks_Complete() 3: { 4: Action task1 = ()=> DoSomething(); 5: Action task2 = ()=> DoSomething(); 6: Action task3 = ()=> DoSomething(); 7: 8: IAsyncResult result1= task1.BeginInvoke( null , null , null ); 9: IAsyncResult result2= task2.BeginInvoke( null , null , null ); 10: IAsyncResult result3= task3.BeginInvoke( null , null , null ); 11:   12: WaitHandle.WaitAll( new WaitHandle[]{result1.AsyncWait...

Cannot initialize the ASP.NET project

After enabling Code Coverage on a Web Application, our build showed up red :-( The build log on our TFS 2010 Build Server showed us following information:   Run has the following issue(s):          Cannot initialize the ASP.NET project 'Project.Host'.          Exception was thrown: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:1709/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error. ….      Done executing task "TestToolsTask" -- FAILED. 1:7>Done building target "CoreTestConfiguration" in project "TFSBuild.proj" -- FAILED. I couldn’t find a good solution, so I had to disable the code coverage on the web project. No idea what could be wrong…

Windows Phone 7 Series

Microsoft finally announced his answer on the Apple IPhone and the Google Android. Interested? Try out the new user interface and functions here . 

MSTest Improvements in TFS 2010

After installing the Release Candidate bits in our development environment, I found out a very great improvement. The output information from MSTest, used when running unit tests, is finally nicely integrated in the build report. Before you only got an error like this when running the tests failed MSTest.exe returned an exit code of 1 indicating that not all tests passed. Now you get a full report containing all the tests and their results, any errors and every other information you could ever need. Great!