Actualizing Visual Studio project sources

 

Introduction

This feature is used to synchronize source files. File actualization is broken down into two stages. During the first stage, the list of source files (.cs) belonging the the project file (.csproj)is updated  according to the additions made from Objecteering. Conversely, the second stage allows you to reverse sources added in Visual Studio in Objecteering. Actualization enables you to work simultaneously in Objecteering and Visual Studio.

 

 

Actualizing project source files

To actualize the source files managed by a project, simply select the model element in the explorer (1) and then click on the  icon in the auxiliary window (2).

 

2.

 
Actualizing source files

 

Note 1:   Source file synchronization is secure, since it only allows the addition of new source files, in one direction or the other. To delete source files, you must delete them in the Objecteering explorer and in the Visual Studio "Solution Explorer".

 

Note 2:   In order to avoid losing data between sources added from Objecteering and those added from Visual Studio, files with the same names are marked as being conflicting files.

 

 

Objecteering > Visual Studio

 

Actualizing sources from Objecteering to Visual Studio

 

In the example above, the "NewAccount" class has been added to the "Bank" package, which is the root namespace of the project [1].  After actualization, if the focus is positioned on the "Bank" project previously opened in Visual Studion a window opens informing us that the project file (.csproj) sources have been modified [2].  After confirming the addition (using the "Reload" button), the Visual Studio explorer displays the same source tree.

 

Warning: Classes, interfaces and enumerations added in Objecteering will not be taken into account unless they are generated previously.

 


Visual Studio > Objecteering

 

Actualizing sources from Visual Studio to Objecteering

 

In the example above, the "NewTest" class has been added to the "Bank" project in Visual Studio ("Add > New Item") [1]. After actualization, the changes made to the source files (.cs) of the project file (.csproj) are transferred (reverse) [2] into Objecteering. The Objecteering explorer [3] then shows the same source tree as that appearing in Visual Studio [1].

 

Note 1:   Sources will not be reversed [2] if the module generation mode has been set to "Round trip".

 

Note 2:   The source files [1] represented by the  icon in the Visual Studio explorer are links to external files.  They are ignored during actualization.