SharePoint Development with Visual Studio 2012
-
Upload
thuan-nguyen -
Category
Technology
-
view
1.570 -
download
0
description
Transcript of SharePoint Development with Visual Studio 2012
![Page 1: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/1.jpg)
SharePoint Development with
Visual Studio 2012
![Page 2: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/2.jpg)
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
![Page 3: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/3.jpg)
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”
![Page 4: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/4.jpg)
Agenda Introduction What's New for SharePoint Development in
Visual Studio 2012 Building Apps on SharePoint 2013 with Visual
Studio 2010 Demonstration Q&A
![Page 5: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/5.jpg)
![Page 6: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/6.jpg)
What's New for SharePoint Development in Visual Studio 2012
![Page 7: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/7.jpg)
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 !!!
![Page 8: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/8.jpg)
DEMONew Designers
![Page 9: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/9.jpg)
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
![Page 10: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/10.jpg)
DEMOSilverlight Web Part
![Page 11: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/11.jpg)
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
![Page 12: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/12.jpg)
DEMOSPIs
![Page 13: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/13.jpg)
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
![Page 14: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/14.jpg)
DEMOOthers
![Page 15: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/15.jpg)
Building Apps on SharePoint 2013 with Visual Studio 2012
![Page 16: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/16.jpg)
SharePoint Apps
![Page 17: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/17.jpg)
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.
![Page 18: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/18.jpg)
SP Apps – From pieces to “ready to use solutions
• Web Parts• Lists• Content types• Controls• …
• Packaged solutions• Ready to use apps• Reusable as such
![Page 19: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/19.jpg)
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
![Page 20: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/20.jpg)
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
![Page 21: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/21.jpg)
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
![Page 22: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/22.jpg)
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
![Page 23: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/23.jpg)
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
![Page 24: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/24.jpg)
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
![Page 25: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/25.jpg)
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!
![Page 26: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/26.jpg)
Let‘s get started!
Build a basic SharePoint 2013 app with Visual Studio 2012
DEMO Create a SharePoint-hosted App
![Page 27: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/27.jpg)
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!
![Page 28: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/28.jpg)
DEMOCreate SharePoint-hosted App
![Page 29: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/29.jpg)
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!
![Page 30: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/30.jpg)
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]
![Page 31: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/31.jpg)
.
Thank you!
![Page 32: SharePoint Development with Visual Studio 2012](https://reader035.fdocuments.us/reader035/viewer/2022062513/55526ab1b4c905d41d8b5100/html5/thumbnails/32.jpg)
Q & A