This Trick Allan showed me…
You can add a menu tool to your visual studio to add/upgrade/delete your WSP solution If it located in the same folder for your VS Project
Open your Visual Studio Select Tools > External Tools then Click ADD
Tool 1 :"Add WSP" this tool Adds Your WSP solution to the Share Point Solutions List … How Ever It Adds it Without Deployment So you need to Open Administration site for share point and open Central Administration > Operations > Solution Management to deploy the project after using this tool
back to what we were saying
Too1:
Write the following
Title : Add WSP
Command : system Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE
Arguments : -o addsolution -filename $(TargetName).wsp
Initial Directory : $(ProjectDir)
Check Use Out Put window Option
Tool2: UpGrade WSP (Only Works When Your Solution is Deployed Already on share Point Used Up Grade the WSP Solution)
Title : UpGrade WSP
Command :system Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE
Arguments : -o upgradesolution -filename $(TargetName).wsp -name $(TargetName).wsp -immediate -allowgacdeployment
Initial Directory : $(ProjectDir)
Check Use Out Put window
Tool3:(Removes the WSP Solution From the share point Solutions how ever the solution must be retracted before using this tool, to retract your solution open Administration site for share point and open Central Administration > Operations > Solution Management )
Title : Remove WSP
Command : system Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE
Arguments : -o deletesolution -name $(TargetName).wsp
Initial Directory : $(ProjectDir)
Check Use Out Put window
To Make any of These Tools Work You must First Select the Project in the Solution Explorer window In the VS before selecting the tool from the tools menu … Also the WSP solution must be in your project Directory.
To Generate the WSP solution from Your VS you can see the tool I mentioned in my Previous Post
I made tool for the WSPBuilder From my Previous Post to generate the Wsp in the project folder
Tool4:(generate Wsp file from VS project in the project`s folder)
Title : WSP Build
Command : WSPBuilder Tool Path\WSPBuilder.exe
Arguments :
Initial Directory : $(ProjectDir)
Check Use Out Put window
So you can develop your project use tool4 to generate the wsp solution use too1 to add it to the share point solutions ,deploy it from the administration site and if you made some modifications to the project you simply rebuild it and then use tool 4 and finally use tool 2.












