Describe the bug
As my UWP project is loading, I can right click the project item and see that the Template Studio menu item is there (but the child menu items are all disabled). But after the project is fully loaded, the menu item disappears. It is no longer in project-level context menu.
This happened after upgrading WTS to 3.7
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected it would be there and be functional
System
Thanks for reporting @enghch. I was looking into this and it seems there is an issue in building the template cache from the right click menu after updating Visual Studio versions.
While we are working on a fix, you can workaround by starting the WTS Wizard from File -> New Project -> Windows Template Studio (Universal Windows) to build the cache (you don't have to actually create the project, just open the wizard).
That workaround worked great! Thanks for that.
Glad that unblocked you.
I was looking deeper into this and think that instead of dynamically evaluating what right click options should be available for each platform, we should have a dictionary of available options for each platform in the wizard.
Dynamically evaluating visibility of items depending on the available templates for each platform means we have to ensure the cache is up to date and templates are extracted from vsix.
Refreshing the cache takes only a few seconds, but extracting the templates if necessary (after a vsix update) takes longer.
Available options do not frequently change, and having a dictionary of available options will help to speed up right click menu visiblity.
That would make sense to me. If I understand correctly, that would mean there is always an available list of menu options, even if the templates haven't been extracted for this particular platform yet.
Yes, exactly. All available right click options show up, if you select one the templates get extracted/synced if necessary when the wizard opens.
We'll ship a hotfix for this.
Fixed in version 3.7.20203.3