SharePoint: Will there be a DLL deployment to install WSP in Gac?

I was wondering if I would parse the WSP using the stsadm command:

stsadm -o addsolutionfilename myWSP.wsp 

Will the required DLL (already included in the WSP) in the GAC also be installed?

Or is this another manual process?

+6
sharepoint
source share
3 answers

This is determined by the DeploymentTarget attribute in the manifest.xml solution. If you maintain this file yourself, using the following syntax will deploy the code to the GAC:

 <Assemblies> <Assembly DeploymentTarget="GlobalAssemblyCache" Location="MyGAC.dll" /> </Assemblies> 

If you use a tool to create a solution, it depends on the tool. WSPBuilder deploys to the GAC by default, but you can configure it differently. See the section “Copy assembly for BIN instead of GAC (including code access security generation)” in the section in this article by Tobias Zimmergen on the steps to expand it to bin .

+10
source share

If you create packages through VS, open the Package and click on the "Advanced" tab at the bottom. You can add additional assemblies and specify the deployment goal here. I highly recommend doing this, rather than updating the XML directly ... but that's just me.

+4
source share

As the addolution command says , it will simply add the solution to the solution store. You need to call the deploysolution command to get the material. Here is the command you should call

 stsadmin -o deploysolution -name [solutionname] -allowgacdeployment 

Note that allowgacdeployment is required to host files in gac. you can help this team more with this

 STSADM.EXE -help deploysolution 

There is an alternative for this, through the user interface. Go to Central Administrator → Operations → Decision Management select a solution and tell deploy. it will be an easier way to do it quickly.

+2
source share

All Articles