# Use ROOT in VS 2022

**URL:** <https://root-forum.cern.ch/t/use-root-in-vs-2022/48653>\
**Category:** Newbie\
**Created:** [February 3, 2022, 9:04pm UTC](https://root-forum.cern.ch/t/use-root-in-vs-2022/48653 "2022-02-03T21:04:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khoitsma](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/51bf81/32.png) [@khoitsma](https://root-forum.cern.ch/u/khoitsma)\
**Post date:** [February 3, 2022, 9:04pm UTC](https://root-forum.cern.ch/t/use-root-in-vs-2022/48653/1 "2022-02-03T21:04:17Z")

</div>

Trying to use ROOT with VS 2022.

ROOT works well from the command line outside VS.

Within VS, I used NuGet to install latest ROOT package (534.36.13).

Received this message “This ROOT package supports only Visual Studio 2012 or Visual Studio 2013.  
Please make sure the platform toolset is set to the 2012 (v110) or 2013 (v120) toolset in the property General dialog.”

Have I made a mistake or is the NuGet package useable with VS 2022?

Thanks.

_ROOT Version:_ [NuGet 534.36.13]  
_Platform:_ Windows  
_Compiler:_ Not Provided [ISO C++14 Standard]

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 4, 2022, 7:01am UTC](https://root-forum.cern.ch/t/use-root-in-vs-2022/48653/2 "2022-02-04T07:01:42Z")

</div>

Welcome to the ROOT Forum!  
ROOT & NuGet is a very old project which was made with ROOT 5 by @gwatts (@Gordon_Watts). It doesn’t support the more recent versions of ROOT and Visual Studio, and AFAIK is not maintained anymore.  
Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![Gordon\_Watts](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gordon_watts/32/26917_2.png) [@Gordon\_Watts](https://root-forum.cern.ch/u/Gordon_Watts)\
**Post date:** [February 4, 2022, 8:18am UTC](https://root-forum.cern.ch/t/use-root-in-vs-2022/48653/3 "2022-02-04T08:18:12Z")

</div>

Hi,

Yes, unfortunately, that is the case. There is no reason a-priori one couldn’t re-run the builder with the newer versions of ROOT, but given how much has changed between 5 and 6 I would expect some effort would be required.

Cheers,

Gordon.
