question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DotNet Run for F# on OS X giving access error

See original GitHub issue

If I create a new F# project using the DotNet CLI I get an access error on compile see blow console output

Gavins-MacBook-Air:fsharperror gavindraper$ dotnet new -l f#
Created new F# project in /Users/gavindraper/fsharperror.
Gavins-MacBook-Air:fsharperror gavindraper$ botnet restore
log  : Restoring packages for /Users/gavindraper/fsharperror/project.json...
info :   CACHE https://dotnet.myget.org/F/dotnet-core/api/v3/flatcontainer/microsoft.netcore.platforms/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json
info :   GET https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json.
info :   NotFound https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 488ms
log  : Committing restore...
log  : Restore completed in 3382ms.
NuGet Config files used:
    /Users/gavindraper/fsharperror/NuGet.Config
    /Users/gavindraper/.nuget/NuGet/NuGet.Config
Feeds used:
    https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
    https://api.nuget.org/v3/index.json
    https://www.myget.org/F/fsharp-daily/api/v3/index.json
Gavins-MacBook-Air:fsharperror gavindraper$ dot net run
Compiling fsharperror for DNXCore,Version=v5.0
/usr/local/share/dotnet/bin/dotnet compile-fsc @/Users/gavindraper/fsharperror/obj/Debug/dnxcore50/dotnet-compile.rsp returned Exit Code 1
/Users/gavindraper/fsharperror/error FS0193: Access to the path '/usr/local/share/dotnet/bin' is denied.

Compilation failed.
    0 Warning(s)
    1 Error(s)

Time elapsed 00:00:06.1663319

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:29 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
enricosadacommented, Mar 21, 2016

@ctaggart there is pr dotnet/cli#1898 ready to be merged with this and other fixes

1reaction
pocaristcommented, May 17, 2016

Sorry, I succeeded! It was because left the old environment. % rm -rf /usr/local/share/dotnet then reinstall latest version, so I succeeded. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DotNet Run for F# on OS X giving access error · Issue #5108
If I create a new F# project using the DotNet CLI I get an access error on compile see blow console output Gavins-MacBook-Air:fsharperror ......
Read more >
dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
Read more >
Command dotnet ef not found
This was my problem, when I installed on MacOS via "dotnet tool install --global dotnet-ef" I got a prompt to close and reopen...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >
Installing .NET 6 on your M1 Mac (manually) - Maarten Merken
In this short article, I'll show you how to uninstall any previous dotnet versions on your M1 Mac and install the latest .NET...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found