ADN-DevTech / AutoCAD-Net-Wizards

AutoCAD .Net Wizards for Visual Studio
www.autodesk.com/developautocad
Other
95 stars 39 forks source link

Templates dont appear for Visual Studio 2022 #10

Open Shupsta opened 8 months ago

Shupsta commented 8 months ago

I was successfully able to run the administrators install with the log file by creating a "Tests" folder in the same folder as the extracted installer and running the provided command in a powershell terminal using admin access.

That seemed to install to Programfiles (x86) under Autodesk. But when I would launch Visual Studio 2022 I would get no AutoCAD options. So then I copied the contents and pasted them in Documents\Visual Studio 2022\Templates\ProjectTemplates. When I opened Visual Studio 2022 I would see project template options, and I clicked C# and set the project name but then got an error

So I undo all of that and try just running the installer normally, not admin or by command line. The templates are installed in Documents\Visual Studio 2022\Templates\ProjectTemplates under Visual C# and Visual Basic. But then the options dont appear in Visual Studio 2022.

What is the proper way to use this installer?

absJeromeA commented 4 months ago

@Shupsta

This problem occurs if you have more than one version of the .Net Wizards installed. If you have more than a single version installed, please uninstall all .Net Wizards and then make sure that the following location does not contain any remnants of the AutoCAD template zip files:

C:\Users\{logged in username}\Documents\Visual Studio 2022\Templates\ProjectTemplates

After performing the above steps, please re-install only the .Net Wizard version you wish to use.

Also verify that VS is using the above path by checking your location setting at Tools->Options->Project and Solutions->Locations and then examine the value of "User project template location". If it is different than the default above, you can either correct your location or you can move the AutoCAD templates to the location indicated in your settings.