Version control for a SharePoint site?

We work simultaneously on SharePoint sites. We must transfer them to the source control system. We have both VSS and TFS. We will prefer TFS over VSS because of its reliability. I don’t know how to associate a SharePoint site with TFS? The reason she got a little confused with the SharePoint site is not all the dependencies that are on the site, which may have layouts, features, etc., And they are deployed outside the site’s folder. How could you manage parts of a SharePoint site using a version controller (or TFS)?

Thanks.

+4
source share
3 answers

This is one of the challenges of developing SharePoint. We do not store the “content” in the source control, everything that is included in this code includes everything that we add to _layouts. Content (everything in the content database) is still an integral part of the “solution”. We use the version built into SharePoint to do this, and the integration server contains the original copy for everyone to get copies. Content is not deployed in the same way as code, so it is not included in the assembly.

In some projects, this may be possible using export and import or backup; each developer checks the export of a site that uses the solution, and it can be restored in other development environments. This will not allow merging and rewriting the developers' own content.

+1
source

Content is sent directly to production using a browser - you can use site site backups to rehydrate production and development servers with the latest content from production.

Deployable solutions, features, etc. crowded out in the opposite direction: from development to production.

This is how SharePoint is designed: content and code flow in opposite directions to each other. Use TFS to store only code.

+2
source

ArjanP and IrishChieftan are true regarding code and artifact separation. It is assumed that artifacts can be moved to TFS, but this is not recommended. I am studying similar problems in SharePoint and TFS and found these articles very useful:

Team development in Microsoft Office SharePoint Server 2007

http://msdn.microsoft.com/en-us/library/bb428899.aspx

How do we develop SharePoint, including TFS integration? (MCS Finland Team)

http://blogs.msdn.com/vesku/archive/2009/10/25/how-do-we-do-sharepoint-development-including-tfs-integration.aspx

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1299920/


All Articles