开发者

using VisualSVN server with Tortoise SVN and ankhSVN plugin for visual studio 2008

I have a VisualSV开发者_C百科N server and the client is TortoiseSVN with AnkhSVN plugin for VS 2008. I created a project in the VS and added the solution to the Subversion through right click and committed it.

In the repository all the folders are present except bin and obj. Why so? Do I have to manually add them from the project folder?

Some people suggested not to add bin and obj to the repository ? Any good reason ?


You should never ever add the 'obj' folder to version control as it is a folder completely managed by MSBuild (which will add and remove files and subdirectories whenever it likes to).

The bin directory should not (note the difference) be versioned as it contains output instead of source files. It is usually better to mark specific files from other places to be copied to the bin directory at build time ("Copy to Output Directory" in Properties Window) then to add files from the bin directory itself.

The Visual Studio project system provides a list of files that should be versioned to SCC providers such as AnkhSVN, and it is this list of files that you see as 'New' in the AnkhSVN pending changes window and commit dialogs.


if you add the bin / obj folders their contents will be marked as read only and you will get compile errors - or certainly I did when I tried it on my setup.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜