Cant find package manager console in visual studio for mac

前端 未结 4 1632
渐次进展
渐次进展 2021-01-01 18:25

I am using Visual studio for mac. I need to install some packages but I can\'t find package manager console for that.

Visual studio version: Preview 1 (7.0 build 347

4条回答
  •  -上瘾入骨i
    2021-01-01 19:09

    You can follow the NuGet CLI reference and install it https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference

    An excerpt from that link provided reads:

    macOS/Linux

    Behaviors may vary slightly by OS distribution.

    1. Install Mono 4.4.2 or later.

    2. Execute the following commands at a shell prompt:

      # Download the latest stable `nuget.exe` to `/usr/local/bin`
      sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
      # Give the file permissions to execute
      sudo chmod 755 /usr/local/bin/nuget.exe 
      
    3. Create an alias by adding the following script to the appropriate file for your OS (typically ~/.bash_aliases or ~/.bash_profile):

      # Create as alias for nuget
      alias nuget="mono /usr/local/bin/nuget.exe" 
      
    4. Reload the shell. Test the installation by entering nuget with no parameters. NuGet CLI help should display.

提交回复
热议问题