To define a new connection to a Helix Server in Visual Studio:
Open the Open Connection dialog. You can open this dialog the following ways:
Add a new project in Visual Studio in the New Project dialog.
The Open Connection dialog appears unless you’ve set the connection settings in Tools > Options > Source Control to default to the last Helix Server connection or to connection settings defined in your environment variables.
Open a solution or project under Helix Server source control in Visual Studio.
The Open Connection dialog appears unless you’ve set the connection settings in Tools > Options > Source Control to default to the last Helix Server connection or to connection settings defined in your environment variables.
Enter the service name and port number for this connection using
.
service_host
:port_number
If your
Perforce
service is enabled for SSL (Secure Sockets Layer) encryption, use the
following syntax:
ssl:
service_host
:port_number
If you attempt to connect to an SSL-enabled Perforce service and you see a warning about an untrusted SSL connection or altered SSL fingerprint, contact your Helix Server administrator before completing the connection.
In the User field, enter your user name.
(Optional) In the Workspace field, specify the name of your client workspace.
For more information on setting up client workspaces, see Managing workspace specifications.
Click OK.
P4VS connects to the specified Helix Server.
If the server you are connecting to is configured with multi-factor authentication (MFA), you are prompted for another layer of verification. Depending on the setup, you may need to select a method of verification before you can enter your credentials.
For more information, see p4 login2
in the P4 Command Reference.