If you modify a CSPROJ or VBProj's source XML to use the UsingTask tag in order to create a new template (for example to add auto-incrementing versioning to every project I create automatically). I can save the template to the relevant directory and run devenv /setup to add my template to my visual studio build.
All this works just peachy except for one annoyance. Every time I load a project (either new or previously created using this template) it comes up with a security warning as you're loading it and asks you to select "Open as normal" or "Open for viewing"... I understand that this is reasonable behaviour to expect, but is there any way of suppressing this behaviour for my template - either in the IDE or the template file itself? In an ideal world I would be able to mark my template as "safe" so that it didn't trigger this warning - but the more I read, the more I suspect this isn't possible and that I'll just have to set the security level in my IDE to a lower level so that it doesn't flag me for any project - but I can't find a way to do this either.
Any ideas?
All this works just peachy except for one annoyance. Every time I load a project (either new or previously created using this template) it comes up with a security warning as you're loading it and asks you to select "Open as normal" or "Open for viewing"... I understand that this is reasonable behaviour to expect, but is there any way of suppressing this behaviour for my template - either in the IDE or the template file itself? In an ideal world I would be able to mark my template as "safe" so that it didn't trigger this warning - but the more I read, the more I suspect this isn't possible and that I'll just have to set the security level in my IDE to a lower level so that it doesn't flag me for any project - but I can't find a way to do this either.
Any ideas?
Comment