Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot dotnet run F# project on Mac OS X (macOS) #170

Closed
sivabudh opened this issue Jun 28, 2016 · 8 comments
Closed

Cannot dotnet run F# project on Mac OS X (macOS) #170

sivabudh opened this issue Jun 28, 2016 · 8 comments

Comments

@sivabudh
Copy link

I installed DotNet 1.0 released yesterday using this dmg.

dotnet-dev-osx-x64.1.0.0-preview2-003121.dmg

I then created an F# project:

$ dotnet new -l fsharp
$ dotnet restore

Then, when it came time to run it, I got this error:

$ dotnet run
Project fsharp_dotnet_core (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling fsharp_dotnet_core for .NETCoreApp,Version=v1.0
The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc3-004459-00' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
      1.0.0-rc2-3002702
  - Alternatively, install the framework version '1.0.0-rc3-004459-00'.
/usr/local/share/dotnet/dotnet compile-fsc @/Users/Pac/Code/fsharp_dotnet_core/obj/Debug/netcoreapp1.0/dotnet-compile.rsp returned Exit Code 131

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

Time elapsed 00:00:00.4526408

Sadly, I didn't get the "Hello World!" =(

@jolson88
Copy link

This is the case for me on Ubuntu as well :(.

@gregkalapos
Copy link

This is already addressed in:
https://github.com/dotnet/cli/issues/3705
and something was even merged from here:
dotnet/fsharp#1290

I guess the platform is not relevant, since the dependencies are wrong.

This bug also prevents me to work with F# on RTM...

@blackdwarf
Copy link

@cartermp can you share what the fix is here? This seems to be a known issue with wrong dependencies for F# projects that crept into Preview 2 release of the tooling.

@ForNeVeR
Copy link

ForNeVeR commented Jul 2, 2016

@blackdwarf try to create new project. The bug I think was fixed yesterday; I was able to compile and run F# project generated by dotnet new -l F# (because new packages were published).

@sivabudh
Copy link
Author

sivabudh commented Jul 2, 2016

@ForNeVeR thanks for updating us. It works now. Closing the ticket. =)

@sivabudh sivabudh closed this as completed Jul 2, 2016
@rubberduck203
Copy link

Does anyone know how to solve this. Downloaded dotnet core on my mac today, 6 months later and am having the same issue.

@blackdwarf
Copy link

@ckuhn203 the exact same issue that is the root of this thread?

/cc @cartermp

@cartermp
Copy link
Contributor

See here: https://github.com/dotnet/cli/issues/3705#issuecomment-274275752

I was able to get the latest Preview2 tooling that's on the dot.net/core site running without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants