Subscribe
E-mail
Download View Codeplex Project Site
Powered by: newtelligence dasBlog 1.9.7174.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Rich Finn
dasBlog MOSS template
A while ago, I released my little executable for creating WSPs that could be incorporated into the build process of Visual Studio 2005 similar to Carsten Keutmann's WSPBuilder. The downfall was that there was a lot of configuration you had to do to get it working. So, now I've created a Visual Studio project template which is pre-configured with all the needed elements for building the WSP. All you need to to is use the choose the project template and build.
Here's what you need to get going...
1) Download the installer for the template onto your MOSS development server. When you run the exe, it will unpack to c:\createddf, and you'll see a console window open saying 'Configuring Visual Studio, please wait...'. Don't delete or move the c:\createddf directory!
2) Close Visual Studio and re-open
3) Create a new project, and choose the MOSS Solution Builder Project template from the SharePoint_RF project type group. Make sure to name your project with no spaces...
4) The solution explorer should look like this once the project opens (click img to expand): There is a temp.snk file which will be used to sign your assembly unless you change it, which you should.
5) Build the project
7) Open ManifestTemplate.xml- The solution guid is unique for this solution- This file is your handle on having control over what's in the manifest.xml file in the wsp. If you want other namespaces to be included in the safe controls section, put them in. The same rules apply as in the previous wsp packaging tool I created earlier.8) Open the deploy.cmd file in the DeploymentScripts directory. Change the SITE_URL variable to be the address of the web application you want to deploy the solution to.
9) Navigate to the DeploymentScripts directory in Windows Explorer, and double-click deploy.cmd. Make sure you have the stsadm directory added to your path environment variables. You could also create an external tool in Visual Stuido so you never need to leave the IDE.
The first time you run the deploy.cmd, you might see an error saying that the solution does not exist in the solution store. Just hit enter. The deploy.cmd tries to delete, then add, then deploy the solution. You can tweak the file so that features are activated, as well. There's an upgrade.cmd for upgrading your solution, as well. Just make sure you remember to change the SITE_URL variable.
If you have any questions, please ask.
Enjoy!
Update (10/18/2007)
Released a newer version of the template, here's some of the updates: