创建自定义模板时出错 visual studio 2012
Error creating custom templates visual studio 2012
我通过基于 msdn link 实施 IWizard 在 visual studio 中创建自定义模板。
http://blogs.msdn.com/b/vsx/archive/2014/06/10/creating-a-vsix-deployable-project-or-item-template-with-custom-wizard-support.aspx
我在 .vstemplate 中有以下代码 -
<WizardExtension>
<Assembly>MSDNVSIXProject, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f19bee03b9021a52</Assembly>
<FullClassName>MSDNVSIXProject.Template</FullClassName>
</WizardExtension>
我需要调试正在实施 IWizard 的新创建的 class。当我在创建项目时选择模板时出现错误
Error: this template attenmpted to load component assembly
'MyAssembly, Version 1.0.0.0, Culture=neutral, PublicKeyToken =xxxxx'.
For more information on this problem and how to enable this template,
please see documentation on Customizing Project Templates.
我 运行 命令 devenv /installvstemplates 也是如此。
关于如何调试这个问题有什么建议吗?
在签名后将程序集安装到 GAC 中解决了问题。
有一种更好的方法可以以编程方式创建模板,并且不需要将其安装在 GAC 中。请在下面找到post。
http://oncoding.blogspot.com/2012/04/visual-studio-template-wizards-without.html
我通过基于 msdn link 实施 IWizard 在 visual studio 中创建自定义模板。 http://blogs.msdn.com/b/vsx/archive/2014/06/10/creating-a-vsix-deployable-project-or-item-template-with-custom-wizard-support.aspx
我在 .vstemplate 中有以下代码 -
<WizardExtension>
<Assembly>MSDNVSIXProject, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f19bee03b9021a52</Assembly>
<FullClassName>MSDNVSIXProject.Template</FullClassName>
</WizardExtension>
我需要调试正在实施 IWizard 的新创建的 class。当我在创建项目时选择模板时出现错误
Error: this template attenmpted to load component assembly 'MyAssembly, Version 1.0.0.0, Culture=neutral, PublicKeyToken =xxxxx'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.
我 运行 命令 devenv /installvstemplates 也是如此。
关于如何调试这个问题有什么建议吗?
在签名后将程序集安装到 GAC 中解决了问题。 有一种更好的方法可以以编程方式创建模板,并且不需要将其安装在 GAC 中。请在下面找到post。
http://oncoding.blogspot.com/2012/04/visual-studio-template-wizards-without.html