views:

47

answers:

0

There is plenty of documentation on MSDN and elsewhere explaining how to create a publisher policy assembly. All of these examples use the command line tools (al.exe) to generate the policy assembly and GACUtil.exe to install the policy assembly into the GAC.

OK, as far as it goes. For various reasons, I'd like to be able to replicate this process completely within the Visual Studio IDE. That is, the process must run completely automatically as part of the MSBuild processing and must not make any assumptions about file or tool locations. It'll be run on various developer workstations and also on an automated build server.

Has anyone achieved this successfully? If so, please explain the process.