Add 'Publish' to Visual Studio Project
Hi everyone,
Not sure if this is a good place to ask this, but we have a set of XML files that we can import into our platform. I was hoping I could create a library project and add the XML files to it, so that we can more easily edit them. Some things can only be changed via these XML files. I would like to add a 'publish' option that will automatically do some preparation work (combining and zipping up the XML files) and then import a final zip.
How could I add a 'Publish' or 'Deploy' option to the context menu of a visual studio project? I see some project templates have that option...usually for publishing to IIS. It would be handy if I could mimic this behavior, but instead trigger an import to our platform.
I've considered accomplishing this via a post-build event, but I figured it would be intuitive to have something deployed via building. Also, I'd prefer it to be more explicit and deliberate over something that could be accidentally done by building the entire solution.,
0 comments:
Post a Comment