I have written a code in EPIServer for creating a pagetype from code . Now I want to deploy it in client side with the help of package like things. For this the client prefer .episerverdata file . Now my question is that how to build that file and how to use that file in the client side.
Please help I am very new in this EPIServer world.
I assume that you're using PageTypeBuilder to create your PageType from code since you posted in the EPiServer 6 forum. Normally what you would do is deploy your new code to the server, switch the <pageTypeBuilder disablePageTypeUpdation="true" /> flag from true to false in your web.config, and make a request to the site. This will make PageTypeBuilder write the new PageType to the EPiServer database. When that is done, switch the flag back to true to avoid unwanted updation being triggered.
The .episerverdata files are export files (actually compressed zip archives containing a bunch of xml and so forth) created in EPiServer admin mode; Admin mode ==> Admin-tab ==> Tools-section ==> Export Data ==> Export page types. However, if you have created a page type in your own environment through code, exported it this way and then send the episerverdata file to the client, they will not have your code to go with it; which may cause complications.
Hope things are a bit clearer with this answer.
Have a good weekend!