Answered
Cannot compile - Something warns about aardvark.base.typeproviders

1>C:\Program Files\dotnet\sdk\2.1.400-preview-009063\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(143,5): message NETSDK1057: You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
1>FSC : warning FS3005: Referenced assembly 'C:\Users\hs\.nuget\packages\aardvark.base.typeproviders\4.2.4\lib\netstandard2.0\Aardvark.Base.TypeProviders.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found
1>C:\Users\hs\Desktop\walkthrough\src\FunctionalFrontend\App.fs(67,25): error FS0332: Could not resolve the ambiguity inherent in the use of the operator 'Create' at or near this program point. Consider using type annotations to resolve the ambiguity.
1>C:\Users\hs\Desktop\walkthrough\src\FunctionalFrontend\App.fs(67,25): error FS0332: Could not resolve the ambiguity inherent in the use of the operator 'Update' at or near this program point. Consider using type annotations to resolve the ambiguity.
1>Done building project "FunctionalFrontend.fsproj" -- FAILED.

this problem happened in older versions of visual studio 2017. i'm pretty sure in current versions it is fixed though i cannot check atm due to bad internet in the train ;) In preview version however it works (which i recommend anyways).

please somebody with normal visual studio 2017 - https://github.com/aardvark-platform/walkthrough is a repro.

1
Posted 1 years ago
Votes Newest

Answers 2


had exactly this problem.

  • update visual sutdio to the latest version
  • in the visual studio installer, choose "modify"
  • select .NET core runtime and .NET Framework 4.7.2 SDK
2
Posted 1 years ago

thanks! i just added a CI build for this repository: https://ci.appveyor.com/project/haraldsteinlechner/walkthrough

  
Posted 1 years ago