You can import a Microsoft Visual
Studio solution into an eclipse workspace to visualize the solution
files and other elements. You can then use the Project Explorer view
to open an expandable hierarchy of C# and .NET Assembly elements,
add UML diagrams and elements, and implement C# transformations on
UML model elements to generate code.
About this task
This content applies to version
7.5.1 or later. The
.NET solution to import may also contain Windows Communication Foundation (WCF) projects,
as long as they are coded in the C# language and are based on the
.NET 3.x framework.
To import a .NET solution:
Procedure
- In your IBM® Rational® modeling product,
click , and then expand .
- Click Next.
- Enter the path to the solution file (.sln).
- Select your assembly import options.
- Import .NET Assemblies recursively -
Select to import all of the dependent assemblies referenced by the
solution.
- While parsing .NET assemblies get only "types" -
Select to ignore methods and attributes present in the assembly to
improve performance.
- (Optional) Click Next, and then
you can review the projects in the solution and the resulting project
name in the Corresponding Workspace Projects column.
- Click Finish.
Results
The Progress Information window opens to indicate the solution
is importing. After completion of the import, the solution is visualized
in the Eclipse environment as Eclipse linked resources.
What to do next
Now you can view solution elements in the Project Explorer
view, drag elements to a diagram, or visualize changes to the source
code.