Reputation: 447
I have a MacBook Air with macOS Sierra 10.12.5. I'm getting the following error trying to install Visual Studio for Mac:
Initial task interrupted by exception Access to the path "/Users/username/.config/xbuild" is denied. Exception type: System.UnauthorizedAccessException Message: Access to the path "/Users/username/.config/xbuild" is denied. at Xamarin.Web.Installer.TasksManager.DetectComponents () [0x000a1] in /Users/builder/data/lanes/4852/1d420fd9/source/installer/Xamarin.Web.Installer/TasksManager.cs:306
Thanks for your help.
Upvotes: 2
Views: 2377
Reputation: 624
Building on @Elvermg's comment with more details:
I ran:
$ ls -la ~ | grep .config
drwxr-xr-x 5 root staff 170 22 Jun 15:08 .config
This confirmed the same issue.
I changed the owner of the ~/.config
directory:
sudo chown [username]:staff ~/.config/
Problem solved.
Upvotes: 7
Reputation: 1608
Can you try installing this version.
https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview1-7.0.0.347.dmg
Seems the store version might have issues on your version of mac.
Upvotes: 1