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.

F# vanilla project not compiling because of wrong version of Microsoft.NETCore.App on MacOS X

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
cartermpcommented, Jun 28, 2016

@forki Soon! We’re testing a solution right now.

1reaction
enricosadacommented, Mar 5, 2017

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

"The specified framework 'Microsoft.NETCore.App', version ...
Steps to reproduce I'm a first-timer; just installed dotnet-dev-osx-x64.1.0.0-preview2-1-003177.pkg The hello world sequence worked fine - I ...
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
Started to get "This project is targeting a version of .NET ...
I'm getting this same issue with ASP.Net Core 3.1. The solution has been fine for two years and now it want's to install...
Read more >
Troubleshoot .NET Framework targeting errors
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the projects ......
Read more >
New ASP.NET Core Project does not build; "The framework ...
When I create a new project I get the error message The framework 'Microsoft.NETCore.App', version '2.0.9' was not found. as I try to...
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