-1

I'm trying to add the Newtonsoft.Json package but I get this error:

All packages and projects are compatible with net6.0.

Access to the path '--' is denied.

Permission denied

I'm using Visual Studio 2022 for Mac.

I tried to search for other ways to install the package but it failed.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Ana
  • 11
  • 1
    Hi and welcome! Are you doing this from the command line? If so, I'd suggest you to add the command that you're running, to see if the problem is there. – Ramon Royo Nov 05 '22 at 14:59
  • Does this answer your question? [Access to the path is denied](https://stackoverflow.com/questions/4877741/access-to-the-path-is-denied) – possum Nov 05 '22 at 15:06

1 Answers1

0

Look like you not have permission. Please run the Visual Studio as Administrator or give proper permission to user under which Visual Studio is running.

Avinash Jain
  • 7,200
  • 2
  • 26
  • 40