Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dan-hammond 6 posts 76 karma points
    Mar 07, 2019 @ 13:02
    dan-hammond
    0

    ModelsBuilder Custom Tool automatically updated, now incompatible with v7

    Hi,

    I have just made some changes to some document types in Umbraco, so need to generate new models using the Models Builder Custom Tool extension for Visual Studio, but unfortunately I've run into this issue:

    UmbracoModelsBuilder: Starting v8.0.2 07/03/2019 13:00:25.
    UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: Exception: Response status code does not indicate success (Forbidden)
    "API version conflict: client version (8.0.2) is not compatible with server version(3.0.10.102)."
    UmbracoModelsBuilder:    at Umbraco.ModelsBuilder.Api.ApiClient.EnsureSuccess(HttpResponseMessage result)
       at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion()
       at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)
    

    I had the tickbox for automatically updating this Visual Studio extension ticked, so it seems that it's updated to the new v8 as I've opened up Visual Studio.

    I've had a look here:

    https://marketplace.visualstudio.com/items?itemName=ZpqrtBnk.UmbracoModelsBuilderCustomTool#overview

    But I can't seem to find a way to download an older version of the tool. There's also not an option for that within VS2017 as best I can tell.

    I tried building the latest v3 patch release from the downloads on GitHub, which built and installed successfully, but comes up with a generic error when trying to use it.

    I stupidly didn't make a backup of the VSIX when I installed it originally.

    Could someone please advise how to get around this issue? I am not in a position where I can upgrade this site to v8 any time soon.

    Thanks

  • dan-hammond 6 posts 76 karma points
    Mar 07, 2019 @ 13:41
    dan-hammond
    0

    Hi all,

    A colleague found a download to an older version of the installer in the Q & A on the Visual Studio marketplace page:

    https://marketplace.visualstudio.com/items?itemName=ZpqrtBnk.UmbracoModelsBuilderCustomTool#qna

    I've successfully installed and used that, and disabled the auto update feature.

    Thanks

  • Gordon Saxby 1444 posts 1855 karma points
    Jun 04, 2019 @ 15:49
    Gordon Saxby
    0

    Do you still happen to have that install?

    I appear to be in the same situation and can't find an older version of ModelsBuilder :-(

  • dan-hammond 6 posts 76 karma points
    Jun 05, 2019 @ 07:26
    dan-hammond
    0

    Hi Gordon,

    You can download it from here: https://github.com/ehimah/OtherFiles/raw/master/Umbraco.ModelsBuilder.CustomTool.v3.0.10.102.vsix

    Disclaimer: That link isn't associated with me in any way. I found it on the Q & A tab of the marketplace link in my previous comment.

    Thanks

  • Gordon Saxby 1444 posts 1855 karma points
    Jun 05, 2019 @ 07:44
    Gordon Saxby
    0

    I found out about this setting yesterday:

    <add key="Umbraco.ModelsBuilder.LanguageVersion" value="CSharp6" />
    

    From this page, and other places - https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki/Install-And-Configure

    That has allowed me to continue using v8 of the tool.

Please Sign in or register to post replies

Write your reply to:

Draft