question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Getting started" steps fail with "FS0810: Property 'CultureName' cannot be set"

See original GitHub issue

Description

When following the “Getting started” steps in the readme, the dotnet build step fails.

Repro steps

dotnet new -i FSharp.TypeProviders.Templates
dotnet new typeprovider -n LemonadeProvider -lang F#
cd LemonadeProvider
dotnet tool restore
dotnet paket update
dotnet build -c release

Expected behavior

The build succeeds.

Actual behavior

The build fails with the following errors:

D:\Source\Repos\LemonadeProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs(2090,13): error FS0810: Property 'CultureName' cannot be set [D:\Source\Repos\LemonadeProvider\src\LemonadeProvider.DesignTime\LemonadeProvider.DesignTime.fsproj]
D:\Source\Repos\LemonadeProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs(3162,13): error FS0810: Property 'CultureName' cannot be set [D:\Source\Repos\LemonadeProvider\src\LemonadeProvider.DesignTime\LemonadeProvider.DesignTime.fsproj]

Known workarounds

Change minimum target to net461. Replace all instances of net45 with net461, except for in netfx.props, where you can just delete the lines referencing net45* frameworks (I suspect the removal of those lines isn’t strictly speaking necessary).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
cmeerencommented, Nov 16, 2020

I see that #339 was merged some weeks ago, so I tried with the contents of this folder on master and it works fine. I suggest the dotnet new template is updated. I’ll leave this for you to close.

1reaction
cmeerencommented, Nov 16, 2020

I was able to work around the issue by targeting net461 instead of net45. I simply replaced all instances of net45 with net461, except for in netfx.props, where I just deleted the lines referencing net45* frameworks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not being able to build F# type provider SDK
As soon as I build the solution I get the error: "FS0810, Property 'CultureName' cannot be set, \LemonadeProvider\paket-files\fsprojects\FSharp.
Read more >
.NET 5 update? · Issue #356 · fsprojects/FSharp. ...
Repro steps I followed the steps of the Getting Started: ❯ dotnet new -i FSharp. ... error FS0810: Property 'CultureName' cannot be set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found