Using Visual Studio 2010 and CKSDEV 2010, I was able to select to set of features (right click on project, select features to activate).
Then using a custom deployment configuration, I used to specify "Activate selected features" in my deployment process. This was working fine. I was able to push F5 button and only these selected features was activated.
This was also working with VS 2012 and CKSDEV 2010 (not 2012) when targeting SP 2010.
Now, I'm working with SP2013, and CKSDEV 2012. This ability to deploy only selected feature has disappeared, including some other nice tools.
How can I restore the same behavior? How can I only activate my specific set of feature?
FYI, I found a workaround. I specified in my post build event this command:
"%WINDIR%\SysNative\WindowsPowerShell\v1.0\powershell.exe" -command "& {Add-PSSnapin Microsoft.SharePoint.PowerShell -EA 0; Enable-SPFeature ea32a615-8100-40d4-b1f1-636fbae3885d -url '$(SharePointSiteUrl)' -Verbose}"
Setting my deployment configuration to no activation and this will do the trick. But it's a bit of pain when dealing with multiple features.
I need specifying a specific set of features, because I build my project using:
- A feature
A
which is hidden - A feature
B
which is hidden - A feature
C
which is hidden - A feature
Master
which is not hidden and declareA
,B
,C
as feature dependencies.
Using Default
deployment configuration, Visual Studio will enable A
, B
, C
but will fail on activating Master
, because its dependencies would already have been activated.
Any thought?