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:
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:
- For 32-bit systems:
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
1 Asked on November 13, 2021 by kathyb
1 Asked on November 11, 2021 by ciprian
1 Asked on November 11, 2021 by ricardo-rodrigues
1 Asked on November 11, 2021 by gaurav-goyal
1 Asked on November 11, 2021 by matt-minton
0 Asked on November 11, 2021 by jeff-o
3 Asked on November 8, 2021 by marlou
1 Asked on November 8, 2021 by syagla
1 Asked on November 8, 2021 by dk20202
1 Asked on November 8, 2021 by powerbi87
3 Asked on November 5, 2021 by adam13hylo
2 Asked on November 5, 2021 by lakshmi
1 Asked on November 5, 2021
3 Asked on November 5, 2021
1 Asked on November 5, 2021 by sooraj-nair
1 Asked on November 5, 2021 by seaandtea
1 Asked on October 26, 2021 by noah-m
2 Asked on October 26, 2021 by anand-pipaliya
1 Asked on October 26, 2021 by spdev
Get help from others!