Visual Studio 2022, like the versions before it, are .NET Framework 4.x apps. As such your template wizard, which runs in the VS process, needs to be .NET 4.x as well. You cannot currently target .NET Core or newer versions. VS doesn't run these. Of course if you are calling external processes to actually do your work then they can be whatever runtime you want, assume it is installed first.
Is Microsoft.VisualStudio.TemplateWizard incompatible with .Net 8.0?
So,
We are updating to VS2022 at work, and have several VSIX template packages that need to be updated to work with VS2022, as the default VS2019 configuration is not compatible.
To that end, we use wizards with a several of these templates, and when updating our primary wizard library to .Net 8.0 as our new standard version, the only available version of Microsoft.VisualStudio.TemplateWizard library is for .Net 4.72.
Has this been updated? Should I continue using it, or is there a replacement?
Thanks,
Jaeden "Sifo Dyas" al'Raec Ruiner
1 additional answer
Sort by: Most helpful
-
Michael Taylor 54,816 Reputation points
2024-01-30T19:24:01.2833333+00:00 Inprocess extensions, which includes template wizards must remain on .NET Framework 4.x.
If your extension is not going to run in the VS process then you can use a different version of .NET. Refer to this blog article where it talks about out of process extensions. You can also go to the Extensibility team's Github for more information.
But, AFAIK, template wizards have to run in the VS process and therefore are limited to .NET 4.x at this time.