Closed cmeeren closed 3 years ago
To be specific, the following lines are invalid on net45
because AssemblyName.CultureName
is not settable on net45
:
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.
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.
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.
I’m having the same issue. So you are saying that this issue has been fixed but the template hasn’t been updated yet?
Correct.
I removed the 45s from netfx and changed net45 to 461 in project files, (just as in the instruction above) but it now gives me this error:
C:\Users\user\source\repos\HelloWorldProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs(55,9): error FS0074: The type referenced through 'System.String' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard'. [C:\Users\user\source\repos\HelloWorldProvider\src\HelloWorldProvider.DesignTime\HelloWorldProvider.DesignTime.fsproj]
This is fixed now in master
Description
When following the "Getting started" steps in the readme, the
dotnet build
step fails.Repro steps
Expected behavior
The build succeeds.
Actual behavior
The build fails with the following errors:
Known workarounds
Change minimum target to
net461
. Replace all instances ofnet45
withnet461
, except for innetfx.props
, where you can just delete the lines referencingnet45*
frameworks (I suspect the removal of those lines isn't strictly speaking necessary).