Vous êtes sur la page 1sur 3

1/8/13

How to: Open Visual Studio with a Specif ic Conf iguration [AX 2012]

How to: Open Visual Studio with a Specific Configuration [AX 2012]
This topic has not yet been rated Updated: February 24, 2012 Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 You can configure Visual Studio to open with a specific Microsoft Dynamics AX client configuration. This causes Application Explorer to point to the designated configuration. A configuration is a group of startup settings that are used by a client. For more information, see Manage a client configuration To open a specific configuration, you use the / x o f gswitch with a parameter of either a configuration name or the ACni path and file name of a configuration file (.axc file). If your configuration name or configuration file name contains spaces, be sure to enclose the parameter in quotes. If no parameter is specified, then the default configuration is used. If you are working with reports, the Visual Studio integration uses the active local client configuration to establish the connection. Examples that require a Reporting Services configuration include deploying a report or selecting a query as a data source. To point to the correct AOS in this scenario, create a copy of the configuration file in the Visual Studio integration folder. Tip If you point Visual Studio to an invalid configuration or a configuration that has been deleted and then try and open it, Visual Studio will open but the Application Explorer pane will display the message AOS Disconnected. This topic shows you how to configure Visual Studio to open with a client configuration from a shortcut or from the command line. It also describes how to set the configuration for Microsoft Dynamics AX reporting scenarios.

Prerequisites
To complete this scenario you will need: Microsoft Dynamics AX with Visual Studio Tools installed Visual Studio 2010 At least one Microsoft Dynamics AX client configuration

To Open Visual Studio with a Specific Configuration from a Shortcut


1. On the client computer that is running Visual Studio, open the Start menu, right-click Visual Studio 2010, and select Properties.
msdn.microsof t.com/en-us/library /gg889291.aspx 1/3

1/8/13

2. Update the Target field and add the / x o f gswitch with either the name of the client configuration or the ACni name of the client configuration file as shown in the following examples: ":PormFlsMcootVsa Sui 90Cmo7IEdvn.x"/xofg C\rga ie\irsf iul tdo .\omn\D\eevee ACni Cnooe otsDv or ":PormFlsMcootVsa Sui 90Cmo7IEdvn.x"/xofg C\rga ie\irsf iul tdo .\omn\D\eevee ACni z\ofgCnooe.x :Cni\otsDvac If you run the Visual Studio executable with a parameter of /?, then it will show you all the available switches you can use. Note When pointing to a configuration file, you can use a Universal Naming Convention (UNC) file location such as \Sre\ofgrtosCnooe.x. \evrCniuain\otsDvac 3. Click OK. When you click the Visual Studio shortcut, it opens and Application Explorer points to the specified client configuration. The name of the configuration appears at the top in the root node of Application Explorer.

To Open Visual Studio with a Specific Configuration from the Command Line
1. You can open Visual Studio with a client configuration from the command line. To do so, click Start > Run, type c dand then click OK. m 2. Navigate to the directory that contains the Visual Studio IDE executable, for example, C \ r g a F l s :Porm ie ( 8 ) M c o o t V s a S u i 1 . \ o m n \ D . Then type one of the commands shown in the x6\irsf iul tdo 00Cmo7IE previous procedure (without the quotes), for example, d v n . x / x o f g C n o o e . eevee ACni otsDv

To Create a Specific Configuration for Reports


To create a configuration for Reporting Services, run the Microsoft Dynamics AX configuration utility as an administrator, and then click Manage > Save configuration as file, and give the configuration a name like Microsoft.Dynamics.AX.ReportConfiguration.axc. The file must be saved in the PrivateAssemblies folder in the Visual Studio IDE installation directory, like the following: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies.

See also
Manage a client configuration Visual Studio Development for Microsoft Dynamics AX

msdn.microsof t.com/en-us/library /gg889291.aspx

Community Additions

2/3

1/8/13

How to: Open Visual Studio with a Specif ic Conf iguration [AX 2012]

Community Additions

2013 Microsoft. All rights reserved.

msdn.microsof t.com/en-us/library /gg889291.aspx

3/3

Vous aimerez peut-être aussi