volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
11.16k stars 238 forks source link

Documentation for old school Visual Studio users #1186

Open bbrandt opened 2 years ago

bbrandt commented 2 years ago

Can you please add this somewhere in the docs for people that are still using the heavyweight Visual Studio?

If you are managing your NPM version with Volta, but also using Visual Studio, then you will need to update your VS config to use Volta instead of the NPM tools that come with VS. From your Visual Studio:

  1. Choose Tools > Options. Under Projects and solutions, choose Web Package Management > External Web Tools
  2. Add $(ProgramFiles)\Volta to the top of the list
  3. Add $(LOCALAPPDATA)\.volta\bin as the second item on the list image

These instructions have been tested with VS2022 (17.1.0). Wording may be slightly different on other versions.

charlespierce commented 2 years ago

Hi @bbrandt, thanks for writing that up! Is that option (Web Package Management > External Web Tools) part of a plugin that you would need to have installed for these instructions to make sense? Or is it just a default part of Visual Studio? I haven't worked in full VS in many years, so I just want to make sure.

I think we can definitely add those instructions to the docs!

bbrandt commented 2 years ago

Web Package Management > External Web Tools is an option in vanilla Visual Studio. No plugin needed. Thanks!