SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
714 stars 110 forks source link

Unable to build Docs as Fornax needs dotnet3 #299

Open groma84 opened 3 years ago

groma84 commented 3 years ago

I was unable to build the Docs, first with the devcontainer where only dotnet5 is installed, because it requires an installed dotnet3 sdk.

Afterwards when trying it locally with an installed dotnet3 sdk

λ dotnet --list-sdks
3.1.408 [C:\Program Files\dotnet\sdk]
5.0.201 [C:\Program Files\dotnet\sdk]

also results in errors:

λ dotnet fake build -t Docs
...
Starting target 'Docs'
docs> "dotnet" fornax build (In: false, Out: false, Err: false)
LOADER ERROR: Load Errors: [|C:\workspace\other\Saturn_orig\docs\loaders\apirefloader.fsx (2,1)-(2,88) parameter error Unable to find the file '../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.MetadataFormat.dll' in any of
 C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1
 C:\workspace\other\Saturn_orig\docs
 C:\Users\mgrotz\.nuget\packages\fornax\0.13.1\tools\netcoreapp3.1\any\|]
Open Errors: [|input.fsx (1,6)-(1,18) typecheck error The namespace or module 'Apirefloader' is not defined.|]
Get layout Errors: [|input.fsx (1,16)-(1,22) typecheck error The value or constructor 'loader' is not defined. Maybe you want one of the following:
   Loading
   Order|]

I think we need an updated dotnet5 compatible version of the Fornax tool?

Krzysztof-Cieslak commented 3 years ago

Yes, I need to release a new version of Fornax for .NET 5 support.

64J0 commented 3 years ago

The Fornax is now updated, no? I just downloaded the code there and the global.json states that the required version is the 5.0.102.

cartermp commented 2 years ago

Fornax is updated but need publishing, should happen soon: https://github.com/ionide/Fornax/issues/77

Once that is done I'll update things on this end