How to write MSBuild that can deploy k2 process and set the process rights for users / groups?

  • 14 January 2013
  • 2 replies
  • 1 view

Badge

How to write MSBuild that can deploy k2 process and set the process rights for users / groups?


Can anyone advise?


Any sample MSBuild script to share?


2 replies

Badge +9

I don't think it is possible using only msbuild - you may have to include an executable in your deployment process to do this. The executable can take advantage of the code in the SourceCode.Framework namespace to do all sorts of things to your deployed processes. I hope that helps, and if I am incorrect in this I hope someone corrects me, but this is the way we manipulate such things for our deployment processes.

Badge +8

What Tim said is correct, i.e. there is not default MSBuild parameter that you can set for this. It is fairly simple to do this as a Post Build command though. Have a look at the Developer Reference, it has an example of exactly this:


Developer Reference > Development Techniques > Creating a custom MSBuildĀ task to set
rights on a process

Reply