Extend a trial version or update a license

You can evaluate a free trial of Visual Studio Professional or Visual Studio Enterprise for 30 days. And if you sign in, you can extend the trial period to 90 days. The 90 day trial extension works only one time. (Visual Studio Community doesn't require you to sign-in. However, if the installation prompts you to sign-in periodically, sign in to continue using Visual Studio Community without interruptions.)

To continue using Visual Studio after a trial period ends, unlock it with an online subscription or a product key.

Use an online subscription

  1. Choose the Sign in button in the upper-right corner of the IDE (or go to File > Account Settings... to open the Account Settings dialog, and then choose the Sign in button).

  2. Enter the credentials for either a Microsoft account or a work or school account. Visual Studio finds a Visual Studio subscription or an Azure DevOps organization associated with your account.

Important

Visual Studio automatically looks for associated online subscriptions when you connect to an Azure DevOps organization from the Team Explorer tool window. When you connect to an Azure DevOps organization, you can sign in using both Microsoft and work or school accounts. If an online subscription exists for that user account, Visual Studio will automatically unlock the IDE for you.

For more information about Visual Studio subscriptions and how they work, see the Subscriptions Support FAQ page.

Enter a product key

  1. Select File > Account Settings... to open the Account Settings dialog, and then choose the License with a Product Key link.

  2. Enter the product key in the space provided.

Tip

Pre-release versions of Visual Studio do not have product keys. You must sign in to the IDE to use pre-release versions.

For more information about Visual Studio product keys for Visual Studio and how to get them, see the Using product keys in Visual Studio subscriptions page.

Update a stale license

You might see a message in Visual Studio that says, "Your license has gone stale and must be updated."

Visual Studio stale license message

This message indicates that while your subscription might still be valid, the license token that Visual Studio uses to keep your subscription up to date hasn't been refreshed. Visual Studio reports that the license is stale because of one of the following reasons:

  • You haven't used Visual Studio or you haven't connected to the internet for an extended period of time.
  • You signed out of Visual Studio.

Before the license token goes stale, Visual Studio first shows a warning message that asks you to reenter your credentials.

If you do not reenter your credentials, the token starts to go stale and the Account Settings dialog tells you how many days you have left before your token expires. After your token expires, you must reenter your credentials for the account before you can continue using Visual Studio.

Note that CA policies enabled on an account might impact the account state or license. You can troubleshoot the CA/MFA issues to find a resolution. For accounts associated with multiple Azure Active Directories, filtering out non-essential tenants might help. You can do so by using the Filter account dialog (File > Account settings > Apply Filter). When re-authenticating an account, you can also filter out any directories having access issues by using the Re-enter your credentials dialog.

Important

If you are using Visual Studio for extended periods in environments with limited or no internet access, you should use a product key to unlock Visual Studio to avoid interruption.

Update an expired license

If your subscription has expired and you no longer have access rights to Visual Studio, you must renew your subscription or add another account that has a subscription. To see more information about the license you are using, go to File > Account Settings... and look at the license information on the right side of the dialog. If you have another subscription associated with a different account, add that account to the All Accounts list on the left side of the dialog box by selecting the Add an account link.

Get support

Sometimes, things go wrong. If you experience a problem, here are some support options: