Open in Visual Studio action - arasplm/ArasVSMethodPlugin GitHub Wiki

Open in Visual Studio action provides possibility to open Method in Visual Studio from browser.

Note!
Open in Visual Studio action should be imported to Aras Innovator server with the Import command.

'Open in Visual Studio' action in a Method form

Figure 1. 'Open in Visual Studio' action in a Method form

After clicking on the action, browser shows popup window with "Open Microsoft Visual Studio" button.

"Open Microsoft Visual Studio" popup

Figure 2. 'Open in Visual Studio' action in a Method form

Click the Open button to start a new instance of Visual Studio. After startup following dialog will be shown:

"Do you want to open this method in a new project?"

Figure 3. "Do you want to open this method in a new project?" dialog

If you click 'Yes', standard 'New Project' dialog is shown. (See more about Creating new project)
Otherwise, the 'Open Project' dialog is shown.

Note!
You should select an appropriate project template or an existing project according to the Aras Innovator version.

When loading of the project is finished, login dialog appears with predefined connection information. However, user should enter the password. After login process the Open Method dialog appears with predefined Method Name. The button for selecting method from Aras Innovator is disabled.
Click 'OK' to open the method.

Information about the 'openinvs' protocol.

The 'openinvs' protocol is registered in a system during installation of the Aras Innovator Method Plugin. When you navigate in browser using this protocol, the "Open Microsoft Visual Studio" popup appears. Last selected version of Visual Studio is proposed.

If you want to change Visual Studio version associated with the 'openinvs' protocol, go to Start -> Settings -> Apps -> Default Apps -> click Choose default apps by protocol -> scroll down to the 'opneinvs' protocol and choose other Visual Studio version.

The protocol runs a new Visual Studio instance using 'openinvs' URL string as a command-line option. The URL string should have the following format:
openinvs://ArasVersion=...&MethodId=...&ServerUrl=...&Database=...&UserName=...

Parameter Description
ArasVersion Version of Aras Innovator (e.g. 12.0SP1)
MethodId ID of the selected Method item
ServerUrl Server URL
Database Database name
UserName User's login name

Server URL, Database and login name are used for filling fields of the Login dialog in Visual Studio.