modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

ModelsBuilder Options Not Updated Unless Models Build UI is Opened #182

Closed ProNotion closed 5 years ago

ProNotion commented 5 years ago

I have many projects using ModelsBuilder and when I switch between them and attempt to run the tool it fails the first time until I open the ModelsBuilder Options UI where it shows the previous sites url, username and password. After closing the dialog (without any changes) and reopening it, the details appear to then be corrected and loaded from the solutions .UmbracoModelsBuilder.user file.

Alkaersig commented 5 years ago

Yeah we are having this issue as well. We are using the Custom Tool for a lot of our projects, but when changing project the settings are not loaded.

zpqrtbnk commented 5 years ago

odd - going to look into this

just to be sure, "multiple projects" = real different projects within the same VS solution, or different solutions?

ProNotion commented 5 years ago

Different solutions. E.g. Close one solution then open the next and the previous solution settings are still in place when you first try to connect or open the dialogue.

zpqrtbnk commented 5 years ago

thanks - would be settings not being updated when opening / closing solutions - looking into it

Alkaersig commented 5 years ago

Yeah same thing here. Does not matter if i open/close solutions using Team Explorer (Git) or the File menu, the setting is not updated until either closing VS or opening the options menu.

ProNotion commented 5 years ago

I don't know for sure from a technical standpoint but my guess is that the tool is an extension of Visual Studio (the host) itself so a change of context in regards to the solution does not make much if any difference to the host. This theory is supported by the fact that you can access the extension settings even with no solution open in Visual Studio.

zpqrtbnk commented 5 years ago

Done in source. See core task 4880 for release.