Where should the files be in the SharePoint solution?

Our SharePoint solution was recently upgraded to SharePoint 2010, and we are exploring how we pack and deploy the site to see if there are better ways to do something.

Currently, we pack all the files necessary for our site (dll, images, svc files, xap files, js files, css files, masterpages, html files, aspx files) and deploy them to 14 / template / features / OurFeature // p>

I read a lot about the SharePoint Developer Tools in Microsoft Visual Studio 2010 , and I would like to use this to package / deploy our solution. Visual Studio seems to allow you to map folders to SharePoint image and layout directories, and also allows other mapped folders. I am wondering if there are standard locations for any of the other types of files I mentioned above, or is our current method of storing things in a templates / functions folder a good idea? We are currently matching things with this folder in IIS, so ~ / images / points to our images on the site, etc.

Can someone tell me the best practices for organizing a SharePoint site site? Are there any advantages to doing things differently?

+3
source share
2 answers
  • Images must be displayed in 14\TEMPLATE\IMAGESor in the image library (I usually use an image library so that images can be modified without being deployed).

  • Client libraries (.xap files, .js files, etc.) must be located in 14\TEMPLATE\LAYOUTS\ClientBin

  • . DLL files must be sent to a directory GACor BINto a web application that builds

  • .css files can be in the document library, ClientBin, the user folder under 14\TEMPLATE\Layoutsor 14\TEMPLATE\LAYOUTS\STYLES(usually I put them in the style library so that they can be changed, if necessary, deploy the whole solution.)

  • .svc files must be located in 14\ISAPI. Access to them is on the way /_vti_bin/.

  • Capabilities 14\TEMPLATE\FEATURES

+6

, , (14), , ", ", "", ( ), .

+3

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


All Articles