Book a Demo

Author Topic: EA 12: Connect to VS Project doesnt work  (Read 5851 times)

Raf L.

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
EA 12: Connect to VS Project doesnt work
« on: March 01, 2015, 08:53:45 pm »
Hi,

I'm running VS2013Upd4 and EA 12. I installed VSIntegrate version 5.

Extensions->Visual Studio->Connect to External Project brings forth the "Visual Studio Connections" Dialog box, and pressing "Browse" allows me to select a sln file, but then nothing happens.
Also, the "Help" button does not work in that dialog. Please, where can i find up-to-date guidance in making this connection?

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #1 on: March 02, 2015, 07:48:20 pm »
Hi
The user guide can be found here -
http://
http://www.sparxsystems.com/bin/MDGIntegrationVS4.pdf


I use VS2012 integrated with EA
You need to connect EA packages to a VS project, not a model to a solution file

HTH
Using V12

sparxstevebe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #2 on: March 07, 2015, 02:54:55 pm »
[size=12]Hello,[/size]

I have a similar issue. I'm able to trigger the connection from EA project to a VS solution as Raf L. wrote, but on my side the result is an error dialog, saying:
---------------------------------------------------------------------
An error occurred while attempting to communicate with an Addin:

Visual Studio (EAVSBridge.EAVSAddin)

"MDG_Connect: Invalid Parameter(s)"

Please contact the add-in provider for assistance.

---------------------------------------------------------------------
So I'm here to do so. Hope, I'm right. ;-)

In the other direction I do not have any option to connect my solution with an EA model: not in the project menu, any other menu nor in the context menu of my solution -- as the VSIntegration demo explains.

It seems, that VS do not have access to the MDG Integrate plugin. But it is installed, as the programs&features system control lists it. I cannot find any traces from within VS.

My Dev-Environment is:
  • Win7
  • VS2013
  • EA12 Trial
  • MDG Integrate 5 Trial
  • C++ console application project
What I'm doing wrong?
How to check, if it is installed correct?
How install it otherwise?


Any advise would be very appreciated. Best regards.

PS: The trial period both is still active for EA and MDG Integration.
« Last Edit: March 07, 2015, 03:21:12 pm by sparxstevebe »

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #3 on: March 09, 2015, 07:26:25 pm »
Hi

The one thing that I had to do to get this working -

Open your solution file with a text editor
Locate the section that adds the eap file or short cut - it looks something like -
Code: [Select]
     ProjectSection(SolutionItems) = preProject
            ..\..\Model\ModelShortCut.EAP = ..\..\Model\ModelShortCut.EAP
      EndProjectSection
EndProject

No move this section to the top of the solution file and reload

HTH
Using V12

sparxstevebe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #4 on: March 11, 2015, 09:28:56 am »
Hi SomersetGraham,

does this reveal the additional views of EA within VS? I'm looking for the model browser and diagrams view of EA right in VS.  :-/

I will take a look...

Best regards

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #5 on: March 11, 2015, 07:50:55 pm »
Hi
If the EA Model view is not visible in VS you need to attach the model
Project->Attach UML Model

HTH
Using V12

sparxstevebe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #6 on: March 13, 2015, 10:20:23 am »
Hi,

unfortunately it does not work. :-(

I have the "Solution Items" folder as the first node in the solution. The folder contains the EAP file. In the right-click menu of that EAP I can choose "open with..." and through "more" can find an entry for "Enterprise Architect ...". So I guess, there is "some" integration of VS and EA. But there is still no entry called "Attach UML Model" in PROJECT menu: not if selected the first node, not if selected the EAP file and not if selected the Win32Project1 project.

Can you find any other entry/action within VS related to EA? Maybe in the project properties of your code project, maybe else. I don't.

I tried to "repair" the VSIntegrate installation from within the programs system control with no luck. Seems that there is something broken.  :'(

Is there somebody of the Sparx staff that reads this? Do I have a misconfigured system, or made a mistake when installing? Don't know what to do, to get the VSIntegration working properly.

Best regards,
/me

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #7 on: March 13, 2015, 10:30:26 am »
Quote
Is there somebody of the Sparx staff that reads this?
Yes, but not the one you need. Send in a bug report using the link at the bottom of the page or email [email protected]
The Sparx Team
[email protected]

sparxstevebe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: EA 12: Connect to VS Project doesnt work
« Reply #8 on: March 15, 2015, 07:35:15 am »
Hi KP,

thanks for your answer. Yes indeed I thought about that. But wasn't sure if it is an error on my side. So I had to choose my own bug reporting system. :-D

Ok, lets try it. Hopefully it will help.

Best regards
/me