In Visual Studio 2010 you can actually modify the deployment configuration and steps. By default you will get the following:
– Default
– No Activation
Default
With the default one, when you do “Right Click -> Deploy” VS will then retract your solution, re-deploy your latest solution and re-activate the features.
No Activation
With this option it will do as Default except it won’t activate the features.
You can also create your own deployment step. However, the list of steps are quiet limited. You can only choose from the following:
– Run Pre-Deployment commands
– Recycle IIS Application Pool
– Retract solution
– Add solution
– Activate features
– Run post-deployment commands
It would be nice to have an “Upgrade” option. The reason is because, with content types and columns especially, since they’re the core of Sharepoint development project, if you try to retract, re-add solution then re-activate the feature that deploys content types and features, it may break your Sharepoint site completely.
Plus, if you have a feature that creates content (eg. pages and sites) programatically, you obviously will not want it to be activated twice.
I tried to also open the .csproj file with the hope that I can somehow “hack” it but it actually calls a class with namespace:
<DeploymentConfiguration Name=”Upgrade Solution”>
<DeploymentSteps>Microsoft.VisualStudio.SharePoint.PreDeploymentCommand;Microsoft.VisualStudio.SharePoint.RecycleApplicationPool;Microsoft.VisualStudio.SharePoint.RetractSolution;Microsoft.VisualStudio.SharePoint.AddSolution;Microsoft.VisualStudio.SharePoint.PostDeploymentCommand</DeploymentSteps>
<RetractionSteps>Microsoft.VisualStudio.SharePoint.RecycleApplicationPool;Microsoft.VisualStudio.SharePoint.RetractSolution</RetractionSteps>
</DeploymentConfiguration>
Therefore, at this stage I still don’t know how to add my own “Upgrade” deployment step.
Hopefully this will be fixed in the released version of VS 2010.
** UPDATE **
This article actually mentions what I want to exactly do:
http://msdn.microsoft.com/en-us/library/ee256698(VS.100).aspx
I’ll try that soon and let you know how it goes.
Cheers,
Tommy
We provides you the best Services in our themes.
Click on the link below to see a full list of clients which we have developed solutions and provided consultancy for.
We are solution-centered and not application-centered.
Being creative and having fun and yet still delivering a fantastic service is the center of our values.
TFS Consulting Services guarantees delivery that is within budget and deadline or you engage us for free.
Implementing IT solution does not have to be difficult. TFS Consulting Services has a lot of resources on planning and methodologies that will ensure successful delivery of your IT solution. TFS Consulting Services has been around in the web industry for more than 10 years and has experienced all the successes and failures of various type of IT deployment.
Do you need a technical resource? TFS Consulting Services can also provide you with technical resource for developing ASP.NET (C# and VB.NET), SharePoint (2003, 2007, 2010, 2013) and MS CRM applications. Our resource is an Microsoft Certified Personnel (MVP) and Microsoft Certified Technology Specialist (MCTS) in all ASP.NET, SharePoint and CRM.
Make sure your IT implementation is robust and scalable. TFS Consulting Services can provide consulting and advice on industry’s best practice on various web-related areas such as website security, design and usability, application-specific (such as SharePoint)’s best practice, Search Engine Optimisation (SEO), coding standards and many others.
Finally TFS Consulting Services provides you with solution development service. We mainly work with Microsoft technologies (ie. .NET and SQL Server), however we are also capable of developing with PHP and MySQL. If you ever need any business process automation, integration and solution development work, we are the trusted expert you should go to.
For more detailed service offerings please visit our Solutions page.
Tommy Segoro
tommy@tfsconsulting.com.au
+61 404 457 754
© TFS Consulting Services 2025. All rights reserved.