F# vanilla project not compiling because of wrong version of Microsoft.NETCore.App on MacOS X
See original GitHub issueSteps to reproduce
Create new project with dotnet new --lang f#
Restore project with dotnet restore
Run project with dotnet run
Expected behavior
The project should build, run and output “Hello World”
Actual behavior
run
fails the compilation after a lot of downgrade warning with the message:
Project fsharp_test (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling fsharp_test 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
- Alternatively, install the framework version ‘1.0.0-rc3-004459-00’.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information: Version: 1.0.0-preview2-003121 Commit SHA-1 hash: 1e9d529bc5
Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (9 by maintainers)
Top GitHub Comments
@forki Soon! We’re testing a solution right now.
@maestrow you can also use preview2.1 with a workaround.
See https://github.com/dotnet/netcorecli-fsc/wiki/.NET-Core-SDK-preview2.1#dotnet-new for more info