32
SharePoint Development with Visual Studio 2012

SharePoint Development with Visual Studio 2012

Embed Size (px)

DESCRIPTION

This presentation covers new features on Visual Studio 2012 for SharePoint Development, and SharePoint 2013 Apps Development.

Citation preview

Page 1: SharePoint Development with Visual Studio 2012

SharePoint Development with

Visual Studio 2012

Page 2: 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

[email protected]

@binhtnguyen

http://vn.linkedin.com/in/binhthanhng

Page 3: SharePoint Development with Visual Studio 2012

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

[email protected]

“Need a free SharePoint 2013 for testing? Go to sharepointpower.com”

Page 4: SharePoint Development with Visual Studio 2012

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
Page 6: SharePoint Development with Visual Studio 2012

What's New for SharePoint Development in Visual Studio 2012

Page 7: SharePoint Development with 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 !!!

Page 8: SharePoint Development with Visual Studio 2012

DEMONew Designers

Page 9: SharePoint Development with Visual Studio 2012

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

DEMOSilverlight Web Part

Page 11: SharePoint Development with Visual Studio 2012

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

DEMOSPIs

Page 13: SharePoint Development with Visual Studio 2012

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

DEMOOthers

Page 15: SharePoint Development with Visual Studio 2012

Building Apps on SharePoint 2013 with Visual Studio 2012

Page 16: SharePoint Development with Visual Studio 2012

SharePoint Apps

Page 17: SharePoint Development with Visual Studio 2012

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

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

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

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

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

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

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

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

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

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

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

DEMOCreate SharePoint-hosted App

Page 30: SharePoint Development with Visual Studio 2012

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

.

Thank you!

Page 32: SharePoint Development with Visual Studio 2012

Q & A