question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v8.5 GeneratedCodeAttribute misleading for models generated by Umbraco.ModelsBuilder.Embedded

See original GitHub issue

I just “upgraded” to the Umbraco.ModelsBuilder community package.

Properties generated by Umbraco.ModelsBuilder.Embedded have the following GeneratedCodeAttribute:

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder", "8.5.4")]
public new const string ModelTypeAlias = "File";

Properties Generated by Umbraco.ModelsBuilderhave this:

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder", "8.1.0")]
public new const string ModelTypeAlias = "File";

Shouldn’t Umbraco.ModelsBuilder.Embedded’s attributes be changed to reflect the change? i.e.

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Umbraco.ModelsBuilder.Embedded", "8.5.4")]
public new const string ModelTypeAlias = "File";

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ronaldbarendsecommented, Nov 24, 2020

In the backend you can see the content but on the frontend everythings break and it can’t read any of the properties anymore.

Like @JasonElkin commented above, this issue isn’t the cause… It’s almost certainly an issue with a corrupt NuCache (I’ve seen this quite a few times), which can be fixed by going to ‘Settings - Published Status’ and doing:

  • Database Cache: Rebuild
  • Memory Cache: Reload
  • Internals: Collect
1reaction
nul800sebastiaancommented, Mar 5, 2020

I have no idea, I’ll get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to enable modelsbuilder models seems to be generated
Hi,. How to enable Modelsbuilder? Models seems to be generated, but using Model.PropertyName returns "...does not contain a definition for.
Read more >
compilation error on new document type in liveappdata mode
In my existing website V8, which I developed in Visual Studio and then ... the .generated.cs is in the directory under App_Data >...
Read more >
modelsbuilder stopped working - Using Umbraco And ...
I have not noticed any problems with the content of the generated models (so far), but the interface clearly doesn't represent my configuration ......
Read more >
modelsbuilder object not hydrating multinode treepicker
Hi – I have a “footer navigation” property based on Multinode treepicker and have picked some content, but the property is empty when...
Read more >
models builder gripes - Using Umbraco And Getting Started
Write documentation about what information is gathered from existing classes/types and how it is used when generating; Allow custom generator ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found