question

ShwetaPaatil avatar image
1 Vote"
ShwetaPaatil asked AnthonyMushrow-3848 published

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

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://docs.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

vs-extensions
image.png (11.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ShwetaPaatil , I need to confirm something with you. Which version of Visual Studio are you using? What is your project template type? C# or VB project template? Have you installed the “Visual Studio extension development” workload in the Visual Studio Installer?

0 Votes 0 ·

Hi,

I am using Visual Studio 2019 (Version 16.8.4)
Project template type is C#.
Yes I have already installed “Visual Studio extension development” component from the VS installer.

Regards
Shweta

0 Votes 0 ·

I'm encountering the same issue VS2019 trying to set up a custom project template.
Any word on this?

0 Votes 0 ·

1 Answer

AnthonyMushrow-3848 avatar image
0 Votes"
AnthonyMushrow-3848 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.