Search code examples
visual-studio-2010svnvisualsvn

How do I make SVN commit before each time I publish on VS 2010


I'm running Visual Studio 2010, VisualSVN and TortoiseSVN.

Each time I use webdeploy to deploy the website, I'd like it to commit all of my files to SVN. What's the best way to accomplish this?


Solution

  • You should investigate https://github.com/loresoft/msbuildtasks which once installed and integrated into your project file, offer support for creating custom msbuild actions.

    With it installed you can create 'SvnCommit' actions and associate it with a beforebuild or afterbuild target in your project file.