I tried the same thing and get the same results, regardless of where the
templates are stored (local and Intranet) and regardless of the security
of the location (in Trusted Sites or not).

So, I'm not sure what's going on there.  The documentation for the
VSTemplate schema mentions nothing about trust/do-not-trust anywhere.  The
only difference I've seen between the VS2005 templates (that do not cause
this warning) is they use Package and ID attributes with elements like
Name, Description, and Icon.  I don't know if that has the effect
of "trusting" the package...  There's not much documentation on these
attributes; so, I'm not sure how to customize them for a user template.

On Tue, 20 Jun 2006 04:18:05 -0400, Uriel Cohen <[EMAIL PROTECTED]>
wrote:

>Hi,
>
>I am not sure that my problem belongs exactly to this list, but lets see
if
>anyone has a solution anyway.
>I have created a number of Item Templates in Visual Studio 2005 using
>the "Export Template" option from the File menu. The idea is that when
>developers in my department use these new Project Item Templates to create
>new files, classes, controls and forms, they will automatically get the
>company file header with the copyright notice (and other preset stuff in
>the code).
>The problem I am having is that, since when you create new controls and
>forms the VS designer is executed automatically, I am getting a "Security
>Warning" dialog when one of my templates is executed asking to "Trust"
>or "Do Not Trust" the template. This may confuse my developers. I read
that
>there is some kind of policy file that you can define, but I couldn't find
>out more on this.
>Can anyone help me here? I would like some kind of setting that I can
place
>in the template to tell the VS 2005 that he can trust the template.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to