giraffe-fsharp / giraffe-template

A dotnet new template for Giraffe web applications.
Apache License 2.0
37 stars 22 forks source link

FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json' #33

Closed Idrek closed 4 years ago

Idrek commented 4 years ago

Giraffe throws an error just after creating a project with following template (Linux shell example):

dotnet new giraffe --language F# --name Demo --output FSharp.Demo && cd $_
dotnet run --project src/Demo/Demo.fsproj

It yields:

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.

File name: 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

Nothing serious because I can solve it installing the json package, like:

dotnet add src/Demo/Demo.fsproj package Newtonsoft.Json

but I wouldn't expect an error in first place.

dustinmoris commented 4 years ago

Thanks for raising this issue. I'll check the Giraffe template later tonight and will see if I can quickly fix it!

dustinmoris commented 4 years ago

This issue is fixed as part of the latest release: https://www.nuget.org/packages/giraffe-template/1.0.0