Skip to content

da9l/repro50300sdkFS3045Error

Repository files navigation

Reproduction of regression compilation error FS3045 in SDK 5.0.300

Prerequisites

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 -m

To reproduce

dotnet tool restore
dotnet paket restore
dotnet build


...error FS3045: Invalid static argument to provided type. Expected an argument of kind 'string'.

Expected behaviour

It should compile

Workaround 1

Downgrade to SDK 5.0.203 by editing global.json

Workaround 2

[<Literal>]
let refDir = __SOURCE_DIRECTORY__
type Sample = XmlProvider<Schema="Sample.xsd",
                          ResolutionFolder=refDir>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages