SharePoint development in visual studio without having to deploy/debug on every code changes
sharepoint, sharepoint-2010, visual-studio, visual-studio-2010
Solution
I'm gonna to integrate here the answer i get from the kind ppl and what i've actually done to solve/mitigate my slowness problem:
- Installed CKSDev Visual Studio plugin from here: http://cksdev.codeplex.com/
- On the SharePoint project properties tab set to 'True' the property 'Auto copy to SharePoint root', with that on each time you do save a 'visual' (ascx, aspx, js, css, ..) source file, it will be automatically copied over the SP hive without having to manually push it using the Quick Depl. option
- On SharePoint project properties page (right-click, properties), add the following post build event command line:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" /i "$(TargetPath)"
iisreset
The previous commands will:
- Install the project dlls into the GAC
- Restart IIS in order to catch the new dlls
Now each time you do save a change in the visual or build the code it will automatically pushed to the SP installation.
For newer source files i still need to normally deploy the project.
Problem
I'm using VS2010 connected to a local SP2010 installation, I edit the code in VS2010 (i.e. of a WebPart) and then in order to see the result on a browser I deploy the solution. This is very annoying since it is a big project and it takes a couple of mins to deploy the solution. I was wondering if it is possible to have the "edit -> save -> F5" approach even for SharePoint. Thanks!