Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The closest I have experience is on a project that used <a href="http://www.codeplex.com/stsdev" rel="nofollow noreferrer">STSDEV</a> to build solutions for release. Custom build actions allowed us to remove the sharepoint solution from the target server, install the new solutions and reset the required application pools.</p> <p>Took a while to build, but it worked well. We did not release to test using this process, but it may be possible.</p> <p>Here is an example of a targets file. Unfortunately, it is a bit complex.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Project DefaultTargets="DebugBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup&gt; &lt;PackageName&gt;MyFeatures.wsp&lt;/PackageName&gt; &lt;PackageFile&gt;MyFeatures.wsp&lt;/PackageFile&gt; &lt;TargetUrl&gt;http://intranet&lt;/TargetUrl&gt; &lt;ProjectDeploymentFilesFolder&gt;DeploymentFiles&lt;/ProjectDeploymentFilesFolder&gt; &lt;ProjectRootFilesFolder&gt;$(ProjectDir)\RootFiles&lt;/ProjectRootFilesFolder&gt; &lt;WssRootFilesFolder&gt;$(ProgramFiles)\Common Files\Microsoft Shared\web server extensions\12&lt;/WssRootFilesFolder&gt; &lt;ReleaseFolder&gt;$(SolutionDir)Deployment&lt;/ReleaseFolder&gt; &lt;MAKECAB&gt;"C:\Windows\System32\makecab.exe"&lt;/MAKECAB&gt; &lt;STSADM&gt;"$(ProgramFiles)\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe"&lt;/STSADM&gt; &lt;STSDEV&gt;"$(SolutionDir)..\Tools\STSDev\stsdev.exe"&lt;/STSDEV&gt; &lt;GACUTIL&gt;"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe"&lt;/GACUTIL&gt; &lt;IISAPP&gt;cscript c:\windows\system32\iisapp.vbs&lt;/IISAPP&gt; &lt;WARMUPSITE&gt;"$(SolutionDir)..\Tools\WarmUpServer\AsyncWarmup.bat" "$(SolutionDir)..\Tools\WarmUpServer\"&lt;/WARMUPSITE&gt; &lt;TIMERJOBSRESTART&gt;net stop SPTimerV3 &amp;amp; net start SPTimerV3&lt;/TIMERJOBSRESTART&gt; &lt;/PropertyGroup&gt; &lt;ItemGroup&gt; &lt;WSSSourceFiles Include="$(ProjectDir)\RootFiles\**\*.*" /&gt; &lt;/ItemGroup&gt; &lt;Target Name="DebugBuild"&gt; &lt;Message Text="Refreshing Deployment Files..." Importance="high" /&gt; &lt;Exec Command="$(STSDEV) /refresh $(TargetName) $(ProjectDir)" ContinueOnError="true" /&gt; &lt;Message Text="Deleting Solution Package File..." Importance="high" /&gt; &lt;Delete Files="$(ProjectDeploymentFilesFolder)\$(PackageFile)" ContinueOnError="true" /&gt; &lt;Message Text="Building Solution Package (Debug Version)" Importance="high" /&gt; &lt;Exec Command="$(MAKECAB) /F $(ProjectDir)\$(ProjectDeploymentFilesFolder)\SolutionPackage.ddf /D CabinetNameTemplate=$(PackageFile)" ContinueOnError="false" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;Message Text="Copying WSP file to CAB" Importance="high" /&gt; &lt;Delete Files="$(ProjectDeploymentFilesFolder)\$(PackageFile).cab" ContinueOnError="true" /&gt; &lt;Copy SourceFiles="$(ProjectDeploymentFilesFolder)\$(PackageFile)" DestinationFiles="$(ProjectDeploymentFilesFolder)\$(PackageFile).cab" SkipUnchangedFiles="false" /&gt; &lt;Message Text="Copying WSP file to release folder: $(ReleaseFolder) from $(ProjectDeploymentFilesFolder)\$(PackageFile)" Importance="high" /&gt; &lt;Exec Command="attrib -r &amp;quot;$(ReleaseFolder)\$(PackageFile)&amp;quot;" ContinueOnError="true"&gt;&lt;/Exec&gt; &lt;Delete Files="$(ReleaseFolder)\$(PackageFile)" ContinueOnError="true" /&gt; &lt;Copy SourceFiles="$(ProjectDeploymentFilesFolder)\$(PackageFile)" DestinationFolder="$(ReleaseFolder)" SkipUnchangedFiles="false" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugInstall" DependsOnTargets="DebugBuild"&gt; &lt;Message Text="Installing Solution..." Importance="high" /&gt; &lt;Exec Command="$(STSADM) -o addsolution -filename $(ProjectDeploymentFilesFolder)\$(PackageFile)" ContinueOnError="true" /&gt; &lt;Exec Command="$(STSADM) -o execadmsvcjobs" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugDeploy" DependsOnTargets="DebugInstall"&gt; &lt;Message Text="Deploying Solution..." Importance="high" /&gt; &lt;Exec Command="$(STSADM) -o deploysolution -name $(PackageName) -immediate -allowgacdeployment -url http://intranet" /&gt; &lt;Exec Command="$(STSADM) -o execadmsvcjobs" /&gt; &lt;Copy SourceFiles="$(TargetDir)$(TargetName).pdb" DestinationFolder="C:\WINDOWS\assembly\GAC_MSIL\MyFeatures\1.0.0.0__ce271be627d58c77" SkipUnchangedFiles="" /&gt; &lt;Message Text="$(TargetDir)$(TargetName).pdb copied to GAC for debugging." Importance="high" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugDeployForce" DependsOnTargets="DebugInstall"&gt; &lt;Message Text="Deploying Solution..." Importance="high" /&gt; &lt;Exec Command="$(STSADM) -o deploysolution -name $(PackageName) -immediate -allowgacdeployment -url http://intranet -force" /&gt; &lt;Exec Command="$(STSADM) -o execadmsvcjobs" /&gt; &lt;Copy SourceFiles="$(TargetDir)$(TargetName).pdb" DestinationFolder="C:\WINDOWS\assembly\GAC_MSIL\MyFeatures\1.0.0.0__ce271be627d58c77" SkipUnchangedFiles="" /&gt; &lt;Message Text="$(TargetDir)$(TargetName).pdb copied to GAC for debugging." Importance="high" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugRedeploy" &gt; &lt;Message Text="" Importance="high" /&gt; &lt;Message Text="Starting sequence of Retract/Delete/Build/Install/Deploy" Importance="high" /&gt; &lt;CallTarget Targets="DebugRetract" /&gt; &lt;CallTarget Targets="DebugDelete" /&gt; &lt;CallTarget Targets="DebugBuild" /&gt; &lt;CallTarget Targets="DebugInstall" /&gt; &lt;CallTarget Targets="DebugDeployForce" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugRetract" &gt; &lt;Message Text="Retracting Solution" /&gt; &lt;Exec Command="$(STSADM) -o retractsolution -name $(PackageName) -immediate -url http://intranet" ContinueOnError="true" /&gt; &lt;Exec Command="$(STSADM) -o execadmsvcjobs" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;Target Name="DebugDelete" DependsOnTargets="DebugRetract"&gt; &lt;Message Text="Deleting Solution Package from Farm Solution Package Store" /&gt; &lt;Exec Command="$(STSADM) -o deletesolution -name $(PackageName)" ContinueOnError="true" /&gt; &lt;Exec Command="$(STSADM) -o execadmsvcjobs" /&gt; &lt;Message Text="" Importance="high" /&gt; &lt;/Target&gt; &lt;/Project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload