Interview Questions Headline Animator

Tuesday, September 22, 2009

Visual Studio 2008 Unit tests… Error loading *.vsmdi: *.vsmdi

I got this error. I got no information on the internet as to how to get around it…

3 hours earlier:

I wanted to create a sequence diagram from the code I have already written. Visual Studio 2010 comes with the sequence diagram feature. I decided heck why not use it. It creates some really cool sequence diagrams. I opened the same project in Visual Studio 2010, created the sequence diagram, closed the project. Went for a smoke.

30 minutes earlier:

My test cases won’t run. the error I get is  “Error loading xxx.vsmdi: D:\Projects\xxx\xxx.vsmdi” looked here, looked there looked everywhere. But didn’t look in the place I should have been looking.

10 minutes earlier:

I built the test project. I got an error. “Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5".”

Well I should have been looking at this 30 minutes ago. I went to the test projects Properties, went to TargetFramework and checked. it was not selected at all. I selected Framework 3.5.

After this all I had to do was close the project and open it and then run all my tests in the solution.

They were all still green. Love it when that happens…!!

Tuesday, September 08, 2009

UML 101

So you need to read the entire UML book in 20 minutes. What do you do? These are the excerpts from the Unified Modeling Language Reference Manual I was reading and thought I could summarize for a quick refresh.

 

clip_image002

Aggregation and composition:

clip_image004

Generalization:

clip_image006

Kinds of dependencies:

clip_image008

clip_image010

Use case diagram:

clip_image012

Kinds of Use Case relationships:

clip_image014

clip_image016

clip_image018

clip_image020

clip_image022

clip_image024

clip_image026

clip_image028

Activity Diagram:

clip_image030

clip_image032

Sequence diagrams and Activation:

clip_image034

clip_image036

clip_image038

Component Diagram:

clip_image040

Deployment Diagram:

clip_image042

Packages and relationships:

clip_image044