fsprojects / FSharp.TypeProviders.SDK

The SDK for creating F# type providers
https://fsprojects.github.io/FSharp.TypeProviders.SDK/
MIT License
300 stars 94 forks source link

Check if Base property on tcImports indeed exists inside ProvidedTypesContext.Create #179

Closed Jand42 closed 6 years ago

Jand42 commented 6 years ago

I have encountered the very same error as described in #177 in a different context: checking a project using a TP with FCS running inside an ASP.NET application (both the web application and and the checked project are targeting .NET 4.6).

I have found that a null check on dllInfo value inside ProvidedTypesContext.Create before using it eliminates this error and I could not find any regression.

dsyme commented 6 years ago

@Jand42 Thanks!