Visual D (VS 2022) project templates missing until configuration manually updated
maxhaton (@maxhaton) reported this on 2022-04-21T18:37:10Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=23043
CC List
- gcowie
- r.sagitario
Description
When I and a colleague installed Visual D onto VS '22, we could use Visual D but had no project templates specific to D.
I ran devenv /updateconfiguration, which worked, however this should either be done automatically or noted explicitly in the installer (ideally both).
r.sagitario commented on 2022-06-05T09:14:02Z
Using short file names seems to cause trouble in VS 2022.
fixed in https://github.com/dlang/visuald/releases/tag/v1.3.0
gcowie commented on 2022-09-25T22:56:08Z
Visual Studio Professional 2022 - 17.3.4 Visual D - 1.3.0
fresh install from VisualD-v1.3.0-dmd-2.100.0-ldc2-1.29.0.exe
first launch of Visual Studio after installing, the extension loads and updates ldc to 1.30, but no VisualD project templates appear even after restarting. the project templates appeared after updating the last modified date on extensions.configurationchanged and restarting Visual Studio.
maxhaton commented on 2022-09-25T23:07:53Z
This has cropped back up inside Symmetry too
I have added a workaround also proposed by others: delete the project template cache if the extension is loaded for the first time. Unfortunately that means you have to get it loaded somehow, e.g. by loading a D file or choosing any function from the Visual D menu for the workaround to kick in.
For newbies (like me) was able to fix this per your instructions, but here are finer details:
VS 2022 > Tools > Command Prompt (Terminal) > PowerShell
devenv /updateconfiguration [Enter]
(wait 1 minute until it completes)
exit VS 2022
Re-open VS 2022, selecting "Start by creating new project button" on the home view
Set language to D (Has "New" next to it)
Select "All platforms" and "All project types".
There it is, there is the beloved project templates: