Copied to clipboard

Flag this post as spam?

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


  • bh 444 posts 1544 karma points
    Mar 03, 2022 @ 14:15
    bh
    0

    Modelsbuilder not working in VS 2022

    Anybody know how to get modelsbuilder working in VS 2022?

    I just got a new laptop and installed VS 2022. I opened a v8 umbaco .sln

    I went to "Build Models" and it's missing from the context menu.

    I checked Tools > Options and the Umbraco section is missing.

    I reinstalled all packages via nuget.

    Still no luck.

    I really don't want to install VS 2019 on this new machine, but I will if that's the only way for Modelsbuilder to work.

  • bh 444 posts 1544 karma points
    Mar 03, 2022 @ 14:40
    bh
    0

    The current *.vsix isn't compatible with VS 2022.

    Here's a thread about it: https://github.com/modelsbuilder/ModelsBuilder.Original/issues/258

    Sure would be lovely if someone from Umbraco picked up Stephan's work and created a VSIX for VS2022. Not to mention updating Modelsbuilder to make it compatible with V9.

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 03, 2022 @ 14:45
    Søren Gregersen
    0

    Hi,

    You don't need the VS Extension for using models builder. Umbraco, and modelsbuilder, works fine without the extension.

    https://our.umbraco.com/documentation/reference/templating/modelsbuilder/

    What features are you missing since the extension is essensial for your work?

  • bh 444 posts 1544 karma points
    Mar 03, 2022 @ 18:48
    bh
    0

    The piece I need from the *.vsix is the "Build Models" functionality

    Is there a way to generate the model classes without using the *.vsix ?

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 03, 2022 @ 19:00
    Søren Gregersen
    0

    Umbraco builds them out-of-the box.

    Just configure the project as described in the documentation. You can setup the namespace, the output folder etc.

  • bh 444 posts 1544 karma points
    Mar 03, 2022 @ 19:43
    bh
    0

    The documentation I see for API uses the *.vsix and "Build Models"

    https://our.umbraco.com/Documentation/Reference/Templating/Modelsbuilder/Builder-Modes-vpre8_5

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Mar 03, 2022 @ 22:03
    Bjarne Fyrstenborg
    0

    If using the community ModelsBuilder package and the API mode, then VS extension is required the build/generating models which connect to an endpoint using the credentials of an Umbraco backoffice user. This offers a few other features besides the Umbraco ModelsBuilder mode like ignoring ModelsBuilder to generate a property and implement it yourself. This is useful for JSON property data or property eidtors, which hasn't implemented a PVC.

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Mar 03, 2022 @ 16:34
    Bjarne Fyrstenborg
    0

    I have a similar issue on a project I am working on, which use ModelsBuilder Api mode and the VS extension.

    There a few features which the embedded ModelsBuilder doesn't have like IgnorePropertyType and ImplementPropertyType attributes. So for now I need to generate models from VS2019.

    For most project we use the embedded version of ModelsBuilder, but er can't change this for this project since it use these features.

Please Sign in or register to post replies

Write your reply to:

Draft