Technically, it seems to be possible to use Visual Studio Code as IDE for C++ development in combination with the Microsoft C++ Build Tools (2019), see https://code.visualstudio.com/docs/cpp/config-msvc. But the license agreement for the Microsoft C++ Build Tools 2019 seem to forbid that:

"You may install and use any number of copies of the software to use solely with Visual Studio Community, Visual Studio Professional, and Visual Studio Enterprise, to develop and test your applications."

There is no Visual Studio Code mentioned. I do not get this.

(My initial concern was to evaluate if it is legal to use the combination in a commercial application without purchasing a license from Microsoft for Visual Studio.)


I see no reason to doubt your conclusion; since it's not allowed by the license it's forbidden by copyright.

As you figured it, you gain the right to use these tools by obtaining one of those 3 Visual Studio licenses. A Visual Studio Code license is free, so it makes business sense that it doesn't include a license for Microsoft C++ Build Tools. I.e. you can't claim it's an "obvious oversight", as there's a justifiable business reason.

| improve this answer | |
  • Visual Studio Community is also available free of charge, so there goes the business reason. This is almost certainly an oversight by Microsoft given that they support you using it in their official documentation and raising it as an issue on the appropriate Github repository for the extension will almost certainly cause the build tools to be relicensed (Microsoft is pretty good about that these days). – Moo Feb 29 at 6:11
  • 1
    @Moo: Community is free only for small businesses or Open Source. It's entirely possible that Microsoft will relicense it for VSCode too, but the legal answer is that it's not allowed. – MSalters Mar 2 at 8:06
  • I have also checked the license information for the c++ extension of visual studio code. There are no exceptions w.r.t build tools. So, finally, the official tutorial strongly encourages to violate Microsoft's license agreement. Incredible. Thanks for double-checking. – user61383 Mar 2 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.