Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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(22.214.171.124)."
UmbracoModelsBuilder: at Umbraco.ModelsBuilder.Api.ApiClient.EnsureSuccess(HttpResponseMessage result)
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:
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.
A colleague found a download to an older version of the installer in the Q & A on the Visual Studio marketplace page:
I've successfully installed and used that, and disabled the auto update feature.
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 :-(
You can download it from here:
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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted