Visual Studio Team System 2008 and Visio FAQ

Use this topic to answer common questions about using Microsoft Office Visio and Visual Studio Team System to create UML diagrams.

Which Versions of Visio are Compatible with Which Versions of Team System?

To determine which versions of Team System work with Visio Enterprise Architects and Visio Professional 2007, use the following table. For more information, see Microsoft Office Visio 2003 edition comparison and Microsoft Office Visio 2007 edition comparison.

Visual Studio Version Microsoft Office 2003 Visio Enterprise Architects Microsoft Office Visio Professional 2007

Team System 2005 for Software Architects

and

Team System 2005 Team Suite

Yes

Yes

Team System 2008 Architecture Edition

and

Team System 2008 Team Suite

No

Partial—Database reverse engineering only. This feature is not integrated with Team System.

How Do I Reverse Engineer a Visual Studio 2008 Solution Into a UML Diagram?

Note

The following workaround is not supported by Microsoft. Use this procedure at your own risk.

You can modify the solution and project files for a Visual Studio 2008 application and then use a combination of Team System 2005 for Software Architects and Visio Professional 2007 to reverse engineer a UML diagram for the project. For more information, see About reverse engineering code to the UML (Visio 2003).

To reverse engineer a Visual Studio 2008 application

  1. In a text editor such as NotePad, open the *.*proj file. For example, *.csproj.

    Note

    If the file is under source code control, right-click the file, select Properties, and then click to clear the Read-only in the Attributes section of the dialog box.

  2. Locate the following text: <Import Project="$(MSBuildToolsPath)\Microsoft.<language>.targets" />

  3. Change the line to read: <Import Project="$(MSBuildBinPath)\Microsoft.<language>.Targets" />

  4. Save the changes to the *.*proj file.

  5. In NotePad, open the *.sln file for the project.

  6. Change the line Microsoft Visual Studio Solution File, Format Version 10.00 to Microsoft Visual Studio Solution File, Format Version 9.00.

  7. Start Visual Studio 2005 and open the modified solution file *.*sln.

  8. On the Project menu, select Visio UML to reverse engineer the application.

  9. Save the diagram and close Visual Studio.

  10. Open the *.*proj file in NotePad.

  11. Locate the following text: <Import Project="$(MSBuildBinPath)\Microsoft.<language>.Targets" />

  12. Change the line to: <Import Project="$(MSBuildToolsPath)\Microsoft.<language>.targets" />

  13. Save changes to the file.

    Note

    If you cleared the Read-only option on *.*proj file, remember to reset this option.

  14. In Notepad, open the *.sln file for the project and change Microsoft Visual Studio Solution File, Format Version 9.00 back to Microsoft Visual Studio Solution File, Format Version 10.00.

  15. Start Visual Studio 2008 and open the *.*sln file to verify that the project opens correctly.

Can I Migrate Visio UML Diagrams to Visual Studio 2008?

Visual Studio 2008 does not include support for migrating UML diagrams directly. If you have static structure UML diagrams, you can use Visio for Enterprise Architects to generate code based on the model. Then you can open the code in Visual Studio Team System 2008 Architecture edition and create class diagrams from the generated code. For more information, see Working with Class Diagrams.

Other UML diagram types are not supported for migrating model information to Visual Studio 2008.

Additional Resources

Blogs

VS Team Architect Blog

Forums

Visual Studio Team System - Architecture & Design

Modeling and Tools (Visio)

Visual Studio Team System Code Name "Rosario"

Web Sites

Microsoft Visual Studio Team System Code Name "Rosario"

Newsgroups

microsoft.public.visio.developer

See Also

Other Resources

Considerations for Reverse-Engineering in Existing Solutions
Application Types and Prototypes for Defining Applications