Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2022 #258

Open
qz2rg4 opened this issue Nov 12, 2021 · 6 comments
Open

VS2022 #258

qz2rg4 opened this issue Nov 12, 2021 · 6 comments

Comments

@qz2rg4
Copy link

qz2rg4 commented Nov 12, 2021

Good Day,

Do you perhaps have an idea when Models Builder Extention for VS2022 will be made available ?

@zpqrtbnk
Copy link
Collaborator

Hey,

We do not have a team of active maintainers for Models Builder at the moment and therefore work on porting the extension to VS2022 has not started. VS2022 requires a separate build for the extensions, because of some changes in extensions management. As such, we cannot tell if nor when the VS2022 extension will be available.

I have done the job for my own SolutionBook personal extension a while ago and it may be used as inspiration. It is not horribly complex, just annoying. But, we need someone with a bit of time to volunteer.

Anyone?

@zpqrtbnk
Copy link
Collaborator

By popular demand ;)

The issue with Visual Studio 2022 is that the Extensions mechanisms have changed enough that a single VSIX cannot support both Visual Studio 2019 and Visual Studio 2022. Therefore, a different VSIX has to be produced for Visual Studio 2022. For instance, for my SolutionBook extension, I produce SolutionBook.2019.vsix and SolutionBook.2022.vsix.

Microsoft provides a comprehensive documentation about the upgrade process. I have done this for SolutionBook in July 2021 and it spans over less than a dozen commits, and it should not be too hard to follow.

For anyone wanting to give it a try, here is how I would do it. I would add two projects to the solution: Our.ModelsBuilder.Extension.2019 and Our.ModelsBuilder.Extension.2022. I would move everything VSIX-related from Our.ModelsBuilder.Extension into Our.ModelsBuilder.Extension.2019, only leaving in Our.ModelsBuilder.Extension the bits that are Visual Studio version-agnostic. Then verify that the solution can still generate the correct VSIX for Visual Studio 2019. Then, populate the .2022 project so that it can generate the new VSIX for Visual Studio 2022.

The trick is in getting things right, putting the right dependencies in each project, etc. And this is where copying from SolutionBook may be a quick way to do it. Hint: I did SolutionBook by copying from others.

I unfortunately don't have the bandwidth to deal with this now (or with the other issues that have accumulated...) but this is an administrative task that does not require any real nor deep knowledge of ModelsBuilder, C#, anything really. It's just moving files around. Don't be scared.

Anyone?

@jamiehowarth0
Copy link

@zpqrtbnk I'm having a crack at this now. Hoping it's not too difficult.

@benehudson
Copy link

@jamiehowarth0 @zpqrtbnk following. I badly need a vsix for 2022. I also see modelsbuilder isn't ready for Umbraco V9. Is there anyone on Umbraco staff that could pickup Stephan's work? Modelsbuilder is crucial!!! I was ready to start a new V9 project in 2 weeks, but without modelsbuilder I'm going to pump the brakes on that.

@motohead400
Copy link

motohead400 commented May 22, 2023

Any chance anyone has taken this on? @jamiehowarth0 were you able to get this to work?

@nikro412956
Copy link

@jamiehowarth0 @zpqrtbnk @motohead400 just a ping to see if anything has changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants