Windows 11 添加环境变量

108 阅读1分钟

'nuget' is not recognized as an internal or external command

  • 应该写NuGetNuGet.exe
  • 或者添加到环境变量里

Setting the path and variables in Windows 11

  1. Press the Windows key+X to access the Power User Task Menu.
  2. In the Power User Task Menu, select the System option.
  3. In the System window, scroll to the bottom and click the About option.
  4. In the System > About window, click the Advanced system settings link at the bottom of the Device specifications section.
  5. In the System Properties window, click the Advanced tab, then click the Environment Variables button near the bottom of that tab.
  6. In the Environment Variables window (pictured below), highlight the Path variable in the System variables section and click the Edit button. Add or modify the path lines with the paths you want the computer to access. Each directory path is separated with a semicolon, as shown below.