I have implemented a vstemplate to create a new project type. When I select
the template under my project type I get and error stating that it tried to
load an untrusted component and references my vstemplate assembly. This is
the error I get in the application event log:
One or more Visual Studio templates do not match any installed project
packages.
I am signing the assembly with a strong name key file through the project
settings and I installed my assembly into the GAC. I also tried using the
strong name in the <assembly> tag under the <wizardextension> tag in the
.vstemplate file, but this didn't help. What am I doing wrong?
Thanks,
Mike Olson
>I have implemented a vstemplate to create a new project type. When I select
>the template under my project type I get and error stating that it tried to
[quoted text clipped - 7 lines]
>strong name in the <assembly> tag under the <wizardextension> tag in the
>.vstemplate file, but this didn't help. What am I doing wrong?
Mike,
I don't have a definitive answer for you, but I was hitting this exact same
situation, getting that error about an untrusted component. Then instead of
strong naming the assembly, I added a post-build step to the template project
that copied the assembly into the DevEnvDir macro location, and used the
non-strong name in the <assembly> tag, then the error went away.
Chuck
michael olson - 15 Dec 2005 16:21 GMT
Thanks Chuck, that worked.
> >I have implemented a vstemplate to create a new project type. When I select
> >the template under my project type I get and error stating that it tried to
[quoted text clipped - 17 lines]
>
> Chuck
michael olson - 15 Dec 2005 18:42 GMT
This works for now, but is this the correct way to do it? The Documentation
states:
"The assembly that implements IWizard must be signed with a strong name and
installed into the global assembly cache." I've also seen postings where you
can put the assembly in the public or private assemblies directories. Is the
correct approach to put it in the GAC and will this be a necessity when
deploying this new package to user's machines?
Thanks
> Thanks Chuck, that worked.
>
[quoted text clipped - 19 lines]
> >
> > Chuck