fsbolero / TodoMVC

TodoMVC with Bolero
40 stars 9 forks source link

dotnet build fails #3

Open NatElkins opened 5 years ago

NatElkins commented 5 years ago
  1. git clone git@github.com:fsbolero/TodoMVC.git
  2. cd TodoMVC
  3. dotnet build

Fails with the following:

/Users/nat/.nuget/packages/microsoft.aspnetcore.blazor.build/0.7.0/targets/RazorCompilation.targets(236,5): error : rzc discover exited with code 1. [/Users/nat/Projects/TodoMVC/src/Bolero.TodoMVC.Client/Bolero.TodoMVC.Client.fsproj]

Build FAILED.

/Users/nat/.nuget/packages/microsoft.aspnetcore.blazor.build/0.7.0/targets/RazorCompilation.targets(236,5): error : rzc discover exited with code 1. [/Users/nat/Projects/TodoMVC/src/Bolero.TodoMVC.Client/Bolero.TodoMVC.Client.fsproj]
    0 Warning(s)
    1 Error(s)
➜  TodoMVC git:(master) dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview5-011568
 Commit:    b487ff10aa

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.14
 OS Platform: Darwin
 RID:         osx.10.14-x64
 Base Path:   /usr/local/share/dotnet/sdk/3.0.100-preview5-011568/

Host (useful for support):
  Version: 3.0.0-preview5-27626-15
  Commit:  61f30f5a23

.NET Core SDKs installed:
  2.1.505 [/usr/local/share/dotnet/sdk]
  2.2.100 [/usr/local/share/dotnet/sdk]
  2.2.103 [/usr/local/share/dotnet/sdk]
  3.0.100-preview5-011568 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview5-19227-01 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview5-27626-15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
Tarmil commented 5 years ago

Right, this project needs to be updated to Bolero 0.5. In the meantime, it can only be compiled with dotnet 2.1; so you can do the following in the solution folder and then it will build:

dotnet new globaljson --sdk-version 2.1.500
NatElkins commented 5 years ago

Thank you! That did the trick.