During SPC12, Preview 2 of the Microsoft Office Developer Tools for Visual Studio 2012 came out. You can get it using the Web Platform Installer. This made a few improvements in how we build Client Web Parts (App Parts). Earlier this year, I provided a step-by-step on how to create SharePoint-hosted Client Web Parts as well as use the Client Object Model with it. Although you can still follow the steps outlined there, this post will tell you what’s different between Preview 1 and Preview 2.
When you create the project, the first two steps look pretty much the same.
The next step has a new link to allow you to create a developer account with Office 365 Preview.
The good news is, they’ve added a wizard that helps you get stared with client web parts. This wizard does three things for you. It creates an application page for the client web part, it add it to elements.xml, and it registers the CSS files from SharePoint so that the content inside the IFRAME is styled appropriately. Once you have created the project, add a new item, and choose Client Web Part (Host Web).
When you go to the next step, you get a new page in the wizard that gives you the option to create a new page for the client web part.
You will still need to add the properties yourself which I still owe you all a post for, but I promise it’s coming soon. :) When you run the app, and add the app part, it should look something like this.