SharePoint Development with
Visual Studio 2012
Binh Nguyen – MCPD, MCTS Technical Program Manager - Appvity LLC (www.appvity.com)
Member of SharePoint Saturday Vietnam Organization Teamhttp://sharepointsaturday.org/vietnam
Involved in SharePoint Vietnam Community
Ask me about- Coffee- SharePoint- Soccer
@binhtnguyen
http://vn.linkedin.com/in/binhthanhng
Thuan Nguyen – MVP, MCITP, MCTS Thuan is Consultant for Availys, where he drives the
expert level of Microsoft technology knowledge throughout his company. Thuan has participated in planning, designing and implementing advanced business solutions utilizing a variety of Microsoft technologies for mid-tier and large organizations.
Having involved in SharePoint Saturday Vietnam board, Thuan is responsible for calling speakers, sponsors, and broadcasting information to SharePoint Vietnam community.
He is regularly on Twitter (@nnthuan) and blogs at thuansoldier.net
“Need a free SharePoint 2013 for testing? Go to sharepointpower.com”
Agenda Introduction What's New for SharePoint Development in
Visual Studio 2012 Building Apps on SharePoint 2013 with Visual
Studio 2010 Demonstration Q&A
What's New for SharePoint Development in Visual Studio 2012
New Designers A new designer for
Content TypesList Template
Can pick site columns
Can change properties
Can add current Content Types and Fields
Reduce XML code …goodbye XML !!!
DEMONew Designers
Silverlight Web Part Automates use of
OOTB Silverlight Web Part
Associate a new or existing Silverlight project
Bundles .xap file in solution package
Deploys .xap file to Site Assets library
Works in SharePoint Online
DEMOSilverlight Web Part
SharePoint Project Items Update new SPIs
Silverlight Web PartSite Columns
Streamlined SharePoint Project TemplatesSome project templates were moved into project item templates
Update new SPIs SPIs indicated for Farm
Solution
DEMOSPIs
Others Visual Web Parts
Auto-generates code via DesignerInherits from Web Part now
Improved Support for Sandboxed SolutionsCompiler errors when using farm APIs callingIntelliSense displays only APIs of sandboxed solutions Allow to create Sandboxed Visual Web Parts
DEMOOthers
Building Apps on SharePoint 2013 with Visual Studio 2012
SharePoint Apps
We cover A glance at SharePoint Apps SP App Design - A Choice of Three
Approaches Support for SharePoint Apps Development How-to: Build an app with Visual Studio 2013
from SharePoint-hosted app approach.
SP Apps – From pieces to “ready to use solutions
• Web Parts• Lists• Content types• Controls• …
• Packaged solutions• Ready to use apps• Reusable as such
Customization packaging and deployment options
Farm
• Full trust solutions• Customizations to
file system of servers
• Classic model from 2007
Sandbox
• Declarative elements
• Partially trusted code service still included for limited server side support
SP Apps
• New Apps model• Deployed from
corporate catalog or office market place
• Manage permission and licenses specifically
• Preferred option
Apps vs. Solution packages
Apps Sandboxed WPS
Full-Trust WSP
Where does server-side code run? Anywhere but farm
Farm (User Code Service)
Farm (w3wp.exe)
Scalable Highly Limited Based on farm
Who can install and remove Users Site collection admin
Farm admin
Supported in SharePoint 2013 Yes Yes Yes
SharePoint Online compatibility Yes Yes No
Azure-hosting compatibility Yes No No
Requires local farm for developers No Yes Yes
Remote deployment and debugging from Visual Studio
Yes No No
SP App Design - A Choice of Three Approaches
App Web (from WSP)
Parent Web
Azure Auto-Provisioned App
Windows Azure + SQL Azure provisioned invisibly as apps are installed
Azure (from
WebDeploy, DacPac)
SharePoint Web
Get remote events from SharePoint Use CSOM/REST + OAuth to work with SP
Cloud-based Apps
Developer-Hosted App
“Bring your own server hosting infrastructure”Developers will need to isolate tenants
SharePoint Web
Your Hosted Site
SharePoint-hosted App
Provision an isolated sub web on a parent web• Reuse web elements
(lists, files, out-of-box web parts)• No server code allowed; use
client JavaScript for logic, UX
Technical Recap of SharePoint apps Web Standards
Apps are built using industry proven web standards such as HTML, JavaScript and REST
Scalable and SafeApps are independently scalable which reduces total cost of ownership. Apps are secured and isolated from SharePoint
AccessibleApps can be accessed from any device with a web browser.
Apps connect to SharePoint usingSharePoint 2013 Client Side Object Model (CSOM)SharePoint 2013 REST APIJavaScript cross-domain library (SP.RequestExecutor.js)
Build apps
Support for SharePoint 2013 App Dev New project types
SharePoint NodeOffice Node
JavaScript Debugging and IntelliSense Remote Event Receiver
Test SharePoint Performance by Using Profiling ToolsBottlenecksIdentify the Inefficient codeAllocate Memory issues
Test Your Code by Using Microsoft Fakes Framework
JS/HTML5
Publish
Deploying and Publishing Packages Deploy package files to the
SharePoint server on your development computer for testing and debugging
Publish apps for SharePointTo Corporate catalogTo SharePoint Store (Marketplace)
Deploy
At the end of the day!• Easy way to get apps from the Office store
without development cost• Save efforts in sales and marketing• Safely deploy with trusted Microsoft’s
approval process on the Office store… you know many more!
Let‘s get started!
Build a basic SharePoint 2013 app with Visual Studio 2012
DEMO Create a SharePoint-hosted App
Walk-through Setup SharePoint 2013 development
environment Create & Configure App Management Service
application Setup DNS for isolate Apps Domain Install development tools…put your fingers on the keyboard!
DEMOCreate SharePoint-hosted App
Must-read references http://
msdn.microsoft.com/en-us/library/jj163230.aspx http://
www.binarywave.com/blogs/eshupps/Lists/Posts/Post.aspx?ID=266
http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=175
http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?List=64b38372-f170-48e3-9720-d3398b3f211c&ID=157
…and many more!
We would like to talk more about SharePoint 2013 Apps Model and the Architecture as well as the Office 365 Apps Development at the next SharePoint Saturday Vietnam.
Questions and Topics to [email protected]
.
Thank you!
Q & A