How to do SVN commit before every post on VS 2010

I am running Visual Studio 2010, VisualSVN and TortoiseSVN.

Every time I use webdeploy to deploy a website, I would like it to transfer all my SVN files. What is the best way to accomplish this?

+3
source share
4 answers

You should explore https://github.com/loresoft/msbuildtasks , which, after installation and integration into your project file, offers support for creating custom msbuild actions.

With it, you can create "SvnCommit" actions and link them in order to create or subsequently build them in a project file.

+1
source

Visual Studio , . VS2010, . SVN . SVN .

, WebDeploy. . CruiseControl.NET - .

+2

, , - , . SharpSVN (API- subversion), .

UPDATE:

As @maddoxej mentioned, the post-build action can also work. However, it’s easy for me to skip which configuration is selected and press F5. And committing SVN by chance is not always good.

Another option I was thinking about might be a VS macro. Just write a macro that launches clicks and then writes to SVN.

0
source

Answers that suggest that verifying the action of the assembly is negligible because the publishing process is likely to increase the published assembly number as part of the publishing process. This will change the source code, which will then require verification.

0
source

All Articles