Html TypeProvider MSBuild compilation issue

I am using multiple type providers from two HTML type providers. Everything compiles using Visual Studio, however when using MSBuild one of the html type providers doesn't generate the type system and I get errors like:

FS0072: Search for an object of undefined type based on information up to this program item. Type annotations may be required up to this point in the program to constrain the type of the object.

FS0039: field, constructor, or descendant member undefined (when accessing descendant collection of an Html property).

Both of these errors are probably only caused by the type provider not generating the types correctly when created with MsBuild.

Are there any Visual Studio / MsBuild specific options that affect type providers? It looks like it has something to do with the HTML file itself, since as said it works with other files, but I don't see any reason why it works in VS and doesn't work using MsBuild.

+3


source to share





All Articles