Install both dotnet SDK 5.0.203 and 5.0.300
choco install dotnet-sdk --version 5.0.203 -m
choco install dotnet-sdk --version 5.0.300 -mdotnet tool restore
dotnet paket restore
dotnet build
...error FS3045: Invalid static argument to provided type. Expected an argument of kind 'string'.It should compile
Downgrade to SDK 5.0.203 by editing global.json
[<Literal>]
let refDir = __SOURCE_DIRECTORY__
type Sample = XmlProvider<Schema="Sample.xsd",
ResolutionFolder=refDir>