Is Microsoft.VisualStudio.TemplateWizard incompatible with .Net 8.0?

Jaeden Ruiner 126 Reputation points
2024-01-29T19:39:47.39+00:00

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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,522 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
185 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 49,701 Reputation points
    2024-01-29T19:57:55.82+00:00

    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.


1 additional answer

Sort by: Most helpful
  1. Michael Taylor 49,701 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.