In this section, we will first configure the system to use MorphX VCS, and then reconfigure it to use Team Foundation Services.
If we are using MorphX VCS, which was designed for one to five developers, we will all be working on the same environment. This is called shared development.
MorphX VCS is set up within the MorphX IDE, as follows:
We can then configure the system settings for additional control over the VCS settings. This is covered towards the end of this section.
In order to use TFS, we need access to a TFS server. This can be installed on premise, or we can use Visual Studio Online. For more information on Visual Studio Online, refer to http://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx.
If AX is cumulative update 8 or later, you will need Visual Studio 2013 professional or a higher edition. Ensure that you have started Visual Studio once and signed in with your Microsoft account.
If you are using cumulative update 7 (CU7) or prior versions, AX will not support Visual Studio 2013, which makes it incompatible with Visual Studio Online as this always uses the latest release. If we try to use Visual Studio Online, it will not be able to authenticate and we will be denied access to the online service.
In order to solve this, we need to install Microsoft Visual Studio Team Explorer 2013, which is a free download available at http://www.visualstudio.com/downloads/download-visual-studio-vs. Once this is installed, you need to start Visual Studio and log in with your Microsoft account. Team Explorer installs the Visual Studio 2013 shell in order to make it available for use with AX. This is where you manage the connection to Visual Studio Online.
Prior to Visual Studio 2010, we had to install Microsoft Visual Studio Team Foundation Server 2013 MSSCCI provider (MSSCCI). Further information on this is available at http://msdn.microsoft.com/en-us/library/dd997788.aspx#msscci. This needs to be installed in order for AX (prior to CU8) to connect to the latest TFS release.
In this example, we will use Visual Studio Online. Registration is free but a Microsoft account is required to access the service. You will be given a portal URL that reads something such as https://<yourorganisation>.visualstudio.com
.
Once the required steps have been done, we can create our new TFS project, as described in the following steps:
6015GettingStarted
as the project name.C:ProjectsVCSAX6015GettingStarted
.The following steps complete the configuration:
Team Foundation Server URL |
This is your local TFS address or your Visual Studio Online URL, for example, |
Team Foundation project name |
This is the project name we created in TFS; in this case, |
Branch folder |
We do not recommend branching at this stage. Enter |
Application root folder |
This is the folder name we created for the project, for example, |
Pending add on C:ProjectsVCSAX6015GettingStartedDefinitionVCSDef.xml with status Getting
The most common error is as follows:
This has the following possible reasons:
DefaultCollection
was misspelt or missingIf the URL is incorrect or you have no access to the Internet, the following message is displayed: Team Foundation services are not available from server https://badnameurl.visualstudio.com/defaultcollection
.
The best way to debug this is to open the URL (copied from the settings form) to a browser. If this works, try connecting to TFS through Visual Studio 2013, as shown in the following steps:
We can now add the elements we create or modify to source control. Refer to Appendix B, Using Version Control, for more information on using source control.
3.12.107.31