Closed dnwhte closed 5 years ago
What version of ModelsBuilder are you running? The tuple literals was introduced in c# version ? and may not be supported by the ModelsBuilder version you are running.
My bad. Should have provided that.
I'm assuming ModelsBuilder 8.X,X is for Umbraco v8?
So... Tuples Literals are not supported by ModelsBuilder 3.0.10. ModelsBuilder 8.x is indeed for Umbraco 8.x but there is a ModelsBuilder 3.1 version which relies on the latest Roslyn packages and therefore supports Tuple Literals.
Disclaimer: running the latest Roslyn packages on anything prior to .Net Framework 4.7.2 can be tricky, which is why this is not the official MB version for Umbraco v7.
I'm trying to extend the generated Image model with the following.
I believe the generator is having issues with tuple literals. It works if I use a more traditional approach (like a ratio class).
The extend class does work, but I cannot regenerate models. I get this generic error: "The custom tool 'UmbracoModelsBuilder' failed. One or more errors occurred."