Installation and deployment
Version 7.x > Installation and deployment > How to deploy changes made to unpublished code into existing published code View modes: 
User avatar
Member
Member
ashish.diwaker-technousa - 12/13/2013 6:09:45 AM
   
How to deploy changes made to unpublished code into existing published code
Hi,

I have a scenario where I have a separate published code & unpublished code. But unpublished code doesn't contains all the files used in published code. When I have to add new Web Part I just created a new Web-part in Unpublished code & add it to published code only .aspx & .aspx.cs files (excluding.aspx.designer.cs file). And this runs on published code also.
But I am having problem when I change the code of existing Web-part & try to merge it to publish code, I tried deleting the existing Web-part & re-adding the Web-part from unpublished code.
But When I delete the Web-part then an error block is displayed at position of Web-part, but When I re-add it from Unpublished code & run it it displays the old Web-Part code.

Note: When I try to publish the Unpublished code using VS 2012 (the traditional way) & add the .dll files into published code the whole website stops working.

Please guide me.

Thanks
Ashish


User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/13/2013 6:24:46 AM
   
RE:How to deploy changes made to unpublished code into existing published code
What development model are you using? Web site or web project? I could see this happening with a web project. The web project requires you to recompile your changes and publish the whole website (not just the files changed). Whereas with the web site method, you can smiply copy the files out you changed. There are pros and cons of each but that is for a different discussion.

User avatar
Member
Member
ashish.diwaker-technousa - 12/13/2013 7:06:52 AM
   
RE:How to deploy changes made to unpublished code into existing published code
Thanks FroggEye,

I have Web Project & after publishing I got only one .dll for whole code & on replacing that in existing code worked.

Thanks for the suggestion. I was hoping that I could update only Web-part specific code but this not possible in Web Project.