Export (0) Print
Expand All
Expand Minimize
3 out of 4 rated this helpful - Rate this topic

Visual Studio Team System 2008 and Visio FAQ

Visual Studio 2008

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

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.

Cc947873.note(en-us,VS.90).gifNote:
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.

    Cc947873.note(en-us,VS.90).gifNote:
    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.

    Cc947873.note(en-us,VS.90).gifNote:
    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.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.