Error: this template attempted to load component assembly 'MyProjectWizard.dll,, version=1.0.0.0, Culture= neutral, PublicKeyToken=899b6f2e68309a3a'.

ShwetaPaatil 6 Reputation points
2021-03-14T18:10:58.997+00:00

Hi,

I have created vsix extension with wizard and project template and installed that extension. I have referenced below link and followed same steps to create that.

https://learn.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates?view=vs-2019

But while creating project with installed project template getting below error.

Error: this template attempted to load component assembly MyProjectWizard.dll, version=1.0.0.0, Culture= neutral, PublicKeyToken=899b6f2e68309a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.

77551-image.png

I have tried many options to solve this error but no success. Please tell how to fix this error.
Your help will be appreciated. Thanks in Advance

Regards
Shweta

Community Center | Not monitored
{count} vote

1 answer

Sort by: Most helpful
  1. Anthony Mushrow 6 Reputation points
    2021-05-12T23:36:42.433+00:00

    Crikey I'm too tired for this.

    Right, in my case I was missing a Zero on the version number. The version number must exactly match what is set in AssemblyInfo.cs
    In this case I suspect it's because you've referenced the assembly as MyProjectWizard.dll where it should just be MyProjectWizard
    For anybody else who stumbles into this mess.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.