SharePoint Asked by Naveen on November 29, 2020
I am working on an automated deployment POC for SharePoint projects. We are using jenkin jobs to download the source code from GIT repository and BUILD it where SharePoint is not installed and copy the WSPS to target SharePoint server for initiating deployment process using .ps1 files.
MSBuild is failing saying SharePoint related dlls are not available, which is expected. What is going to be the best way to supply the dlls? Or any better approach for this whole process?
The workaround what I’m thinking of at the moment is, I would adjust the jenkins job to download the source code from GIT to target SharePoint server directly and then build there rather than trying to build somewhere where SP is not installed and then move WSP to target SP Server. Please suggest.
Thanks is advance…
I'd guess the easy way would be to build on a SharePoint-Server. Share-Point installs many assemblies to the GAC and SharePoint-projects therefore depend on those being installed.
However, this MSDN article describes what is needed:
[...] copy the following assemblies from the development system to the build system and put them in a Reference Assembly folder:
- Microsoft.SharePoint.dll
- Microsoft.SharePoint.Security.dll
- Microsoft.SharePoint.WorkflowActions.dll
- Microsoft.Office.Server.dll
- Microsoft.Office.Server.UserProfiles.dll
- Microsoft.SharePoint.Client.dll
- Microsoft.SharePoint.Client.Runtime.dll
- Microsoft.SharePoint.Client.ServerRuntime.dll
- Microsoft.SharePoint.Linq.dll
- Microsoft.SharePoint.Portal.dll
- Microsoft.SharePoint.Publishing.dll
- Microsoft.SharePoint.Taxonomy.dll
- Microsoft.Office.SharePoint.Tools.dll
- Microsoft.SharePoint.WorkflowActions.dll
- Microsoft.Web.CommandUI.dll
These files are located in the following folder on the development system:
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions15ISAPI
It is recommended that you copy the SharePoint Server assemblies to the folder:
.. Program FilesReference AssembliesSharePoint
And then add one of the following registry entries:
- For 64-bit systems:
HKEY_LOCAL_SYSTEMSOFTWAREMicrosoftWow6432Node.NETFrameworkv4.0.30319AssemblyFoldersExSharePoint15]@="<AssemblyFolderLocation>"
- For 32-bit systems:
HKEY_LOCAL_SYSTEMSOFTWAREMicrosoft.NETFramework v4.0.30319AssemblyFoldersExSharePoint15]@="<AssemblyFolderLocation>"
If your SharePoint Projects refer to other SharePoint Server assemblies, copy them to the build system as well.
so this might work...
Answered by Nils on November 29, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP