modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

UmbracoModelsBuilder Error (System.Net.Http) #221

Closed JaimyTak closed 5 years ago

JaimyTak commented 5 years ago

Hello!

I have encountered a problem that i'm not able to fix. When I run the Umbraco Models Builder (Builder.cs) I recieve an error message:

UmbracoModelsBuilder: Starting v8.0.5 9/25/2019 9:49:24 AM. UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: FileNotFoundException: Cannot load file or assembly System.Net.Http, Version = 4.2.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a or one of its dependencies. The system cannot find the specified file. UmbracoModelsBuilder: at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion () at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw (String wszInputFilePath, String wszDefaultNamespace, IntPtr [] rgbOutputFileContents, UInt32 & pcbOutput, String & errMsg.

Can someone please help me?

Thanks in advance.

Kind regards, Jaimy

zpqrtbnk commented 5 years ago

Can you try again with the Visual Studio Extension instead of the Visual Studio CustomTool? See this post for details. And then... the error happens right in Visual Studio which is weird - what version of VS is that?

JaimyTak commented 5 years ago

Thanks for your reply.

I am recieving the same error with the "Extension".

My visual studio:

Visual Studio Professional 2017 - Version: 15.9.16

Kind regards, Jaimy

zpqrtbnk commented 5 years ago

I am afraid I haven't tested the latest extension with VS2017 - any chance you can run VS2019?

Else I'll have to troubleshoot.

JaimyTak commented 5 years ago

Yes, I'm able to run VS2019. I will send a message/comment when I'm ready/installed everything.

JaimyTak commented 5 years ago

It seems to work with VS2019! Thanks for your reply and help!