Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The license for Visual Studio has expired." when compiling with Visual Studio from TFS build

I need to build SSIS projects (.dtproj) on our build server. They aren't supported by msbuild so I need to use Visual Studio to do it. The wisdom of Stack Overflow indicates I do not need a new license of VS to do this (Is a separate Visual Studio license required for a build machine?). I have logged onto the build server as myself, and registered Visual Studio. But I don't know how to tell the build agents to use my license for Visual Studio. Using TFS2015, vNext build agents (not XAML).

I am calling C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com blah.sln /build Release from the TFS build.

2017-05-02T21:56:08.6745925Z Microsoft Visual Studio 2015 Version 14.0.25420.1.
2017-05-02T21:56:08.6745925Z Copyright (C) Microsoft Corp. All rights reserved.
2017-05-02T21:56:08.6745925Z The license for Visual Studio has expired.
2017-05-02T21:56:09.2986224Z The evaluation period for this product has ended.
like image 567
mhenry1384 Avatar asked May 03 '17 13:05

mhenry1384


People also ask

What happens when Visual Studio license expired?

Visual Studio IDE If your subscription is eligible, you'll continue to have access to your current version of the IDE but won't receive updates to future versions. To continue using the IDE after expiration, go to the product key page and download the product key before your subscription expires.

Does Visual Studio build tools require a license?

Visual Studio Build Tools (VSBT) can now be used for compiling open-source C++ dependencies from source without requiring a Visual Studio license, even when you are working for an enterprise on a commercial or closed-source project.

How do I know when my Visual Studio 2015 license expires?

There is and there isn't an expiration date. If you register Visual Studio 2015 Community Edition by successfully signing into Visual Studio then the product is fully unlocked with no set expiry date. If you don't sign in (or haven't entered a purchased licence key), you only have 30 day evaluation license.

Do I need a license for MSBuild?

To install MSBuild on a system that doesn't have Visual Studio, go to Build Tools for Visual Studio 2022 on the downloads page. Build Tools for VS can be installed without VS, but please make sure you have a valid Visual Studio license.


1 Answers

Figured it out. If I register Visual Studio as me, then I can build. If I go to the MSDN site and get a product key (https://msdn.microsoft.com/en-us/subscriptions/keys/) and then in Visual Studio go to "Unlock with Product Key" and enter that key, now anyone (include the TFS Build Agent) can build.

Update

New url for Key: https://my.visualstudio.com/ProductKeys

like image 172
mhenry1384 Avatar answered Sep 29 '22 08:09

mhenry1384