sdk: Compilation failure after fresh install (F#)
Steps to reproduce
In a new directory, follow these commads:
dotnet new -l F#
dotnet restore
Expected behavior
Running dotnet run or dotnet build works like in a C# .NET Core project.
Actual behavior
When doing dotnet run or dotnet build, you’ll get a compilation error, even though the installation is clean, all configs are default.
Environment data
dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information: Version: 1.0.0-preview2-1-003177 Commit SHA-1 hash: a2df9c2576
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64
(I also have 1.1.0 current installed)
Full error produced
Compiling Library for .NETStandard,Version=v1.6
The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\shared\Microsoft.NETCore.App
- The following versions are installed:
1.1.0
- Alternatively, install the framework version '1.0.0'.
I also tried…
- uninstalling & reinstalling all of .NET Core
- doing this on a clean windows VM (same error)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 25 (14 by maintainers)
@battisti thx for testing! i tried locally and require a new release of
dotnet-compile-fsc(dunno why in my previous local tests was working ok before, probably i mixed cli version) with correct deps. i’ll publish that tomorrow.And yes @piotrpMSFT the tests for templates are my next todo (
preview2.1,preview4). At least i just enabled full ci for all os! in https://github.com/dotnet/netcorecli-fsc/pull/45 (dotnet-ci is really fast). But i really want remote templates 😭😭😭@ondrejgr yes the issue is with
dotnet-compile-fsc, not withdotnet-newtemplate. thepreview2.1require a different version ofdotnet-compile-fscthanpreview2. i’ll publish that soon@enricosada please get the PR out tomorrow if you need a change in the next release…
dotnet-compile-fsc": “1.0.0-preview2.1-*”
Is 1.0.0-preview2-*
I’ll send a pr with correct template and update wiki, and comment in this issue.
But check Also there meanwhile http://blog.2mas.xyz/fsharp-suave-app-on-dotnet-core-on-kubernetes-on-google-cloud/