HandsOn Lab.docx
- 文档编号:28719856
- 上传时间:2023-07-19
- 格式:DOCX
- 页数:19
- 大小:311.78KB
HandsOn Lab.docx
《HandsOn Lab.docx》由会员分享,可在线阅读,更多相关《HandsOn Lab.docx(19页珍藏版)》请在冰豆网上搜索。
HandsOnLab
Hands-OnLab
AutomatingSilverlightWebPartDeployment
Labversion:
1.0.0
Lastupdated:
11/6/2018
Contents
Overview3
Exercise1:
AutomatingSilverlightapplicationandSilverlightWebPartDeployment4
Task1–CreatingaWSPtoDeploytheSilverlightApplication4
Task2–DeployingandTestingtheSilverlightApplicationandWebPagePre-configuredwiththeSilverlightWebPart10
Exercise1Verification11
Exercise2:
AutomatingSilverlightapplicationandSilverlightWebPartDeploymentwiththeVisualStudioSilverlightSharePointWebPartsExtension12
Task1–InstallingtheVisualStudio2010SilverlightSharePointWebPartsExtension12
Task2–CreatingaWSPtoDeploytheSilverlightApplication13
Task3–DeployingandTestingtheSilverlightApplicationandWebPagePre-configuredwiththeSilverlightWebPart16
Exercise2Verification17
Summary18
Overview
VisualStudio2010providestheabilitytocreateSharePointSolutionPackagesandautomatethedeploymentofSilverlightapplicationstoSharePointsitecollections.ByusingaSharePointSolutionPackageyoucandeployaSilverlightapplicationandawebpagecontainingaSilverlightWebPartpre-configuredtodisplaytheSilverlightapplication.TakingthisapproachallowsyoutoeasilyrolloutnewSilverlightapplicationstoSharePointsiteswithouttheneedtocreateapage,addaSilverlightWebParttothepage,andconfiguretheSilverlightWebParttodisplaytheSilverlightapplication.ThiscutsdownontheamountofdocumentationandtimeneededtodeploySilverlightapplicationstoSharePointsites.ThislabwillguidethereaderthroughanexercisewhichusestheVisualStudio2010tocreateaSharePointSolutionPackagethatdeploysaSilverlightapplicationandawebpagethatincludesapre-configuredSilverlightWebParttodisplaytheSilverlightapplication.
TheVisualStudio2010SharePointSilverlightWebPartsExtensionprovidestwoSharePointProjectItems(SPIs)thatallowdeveloperstodeployexistingornewSilverlightapplicationsinthesamefashionasdescribedabove.ThislabwillguidethereaderthroughanexercisethatusestheVisualStudio2010SharePointSilverlightWebPartsExtensiontodeployanexistingSilverlightapplicationtoaSharePointsiteanddeployitonawebpagewiththeSilverlightWebPart.
Objectives
ThislabwilldemonstratehowyoucanuseVisualStudiotoautomatethedpeloymentofaSilverlightapplicationtoaSharePointsite.Todemonstratethisconceptthereaderwill
UseVisualStudio2010tocreateaSharePointSolutionPackagethatdeploysaSilverlightapplication.
UseVisualStudio2010tocreateawebpagethatincludesapre-configuredSilverlightWebParttodisplaytheSilverlightapplication.
UseVisualStudio2010tocreateaSharePointSolutionPackagethatdeploysthewebpagewiththepre-configuredSilverlightWebPart.
SystemRequirements
Youmusthavethefollowingitemstocompletethislab:
2010InformationWorkerDemonstrationandEvaluationVirtualMachine
MicrosoftVisualStudio2010
Setup
Youmustperformthefollowingstepstoprepareyourcomputerforthislab...
1.Downloadthe2010InformationWorkerDemonstrationandEvaluationVirtualMachinefromandcreatetheHyper-Vimage.
Exercises
ThisHands-OnLabcomprisesthefollowingexercises:
2.AutomatingSilverlightapplicationandSilverlightWebPartdeployment
3.AutomatingSilverlightapplicationandSilverlightWebPartdeploymentwiththeVisualStudioSilverlightSharePointWebPartsExtension
Estimatedtimetocompletethislab:
10minutes.
StartingMaterials
ThisHands-OnLabincludesthefollowingstartingmaterials.
∙VisualStudiosolutions.ThelabprovidesthefollowingVisualStudiosolutionsthatyoucanuseasstartingpointfortheexercises.
◦
AsampleSilverlightapplicationusedtodemonstratehowtheSilverlightWebPartdisplaysSilverlightapplicationsonaSharePointsite.
Exercise1:
AutomatingSilverlightapplicationandSilverlightWebPartDeployment
Inthisexercise,youwilluseVisualStudio2010tocreateaSharePointSolutionPackagethatdeploysaSilverlightapplicationandawebpagethatincludesapre-configuredSilverlightWebParttodisplaytheSilverlightapplication.
Task1–CreatingaWSPtoDeploytheSilverlightApplication
Inthistask,youwilluseVisualStudiotocreateaSharePointSolutionPackagethatdeploysaSilverlightapplicationtoaSharePoint2010sitecollection.
1.UsingVisualStudio2010,opentheSample.Silverlight.App.slnVisualStudioSolutionatthefollowinglocation 2.InVisualStudio2010,clickFile>>Add>>NewProjecttoaddanewproject.(Figure1) 3.IntheInstalledTemplates,selectVisualC#->SharePoint->2010andselectEmptySharePointProject. 4.UnderName: enterSharePoint.Silverlight.Deployment. 5.IntheLocation: textboxenter Figure1 CreateanEmptySharePointproject. 6.IntheSharePointCustomizationWizard,entertheURLforyouronpremiseinstanceofSharePoint2010(i.e.). 7.SelectDeployasasandboxedsolutionandclickFinish. 8.Right-clicktheSample.Silverlight.AppprojectandchooseAdd->NewItem. 9.SelectVisualC#->SharePoint->2010->Module. 10.IntheAddNewItemdialog,underName: enterSilverlightandclickAdd. 11.IncludetheSilverlight.CSOMprojectoutputintheSilverlight.Client.CSOM. 12.IntheSolutionExplorer,Right-clicktheSilverlightmoduleandselectProperties. Figure2 TO-DO 13.ClickonProjectOutputReferencesrowandclicktheEllipsebuttontoopentheProjectOutputReferencesdialog. 14.ClickAddandselectanewprojectoutputreference. 15.UnderMembers: selecttheSharePoint.Silverlight.Deploymentproject. 16.SelecttheProjectNamedropdownunderSharePoint.Silverlight.Deploymentproperties: intherighthandpanelselectSample.Silverlight.App. 17.UsingtheDeploymentTypedropdown,selectElementFile. Figure3 ProjectOutputReferences 18.ExpandtheDeploymentlocationrow. 19.DeletethevalueinthePathrow. 20.ClickOKtoexitthedialog. 21.IntheSolutionExplorer,rightclicktheSample.txtfileandselectDelete. 22.ClickOK. 23.Double-clicktheElements.xmlfileundertheSilverlightmodule. 24.AddthefollowingcodetotheModuleelement. Xml Url="_catalogs/masterpage/xaps" 25.AddthefollowingcodetotheFileelement. Xml Type="GhostableInLibrary" 26.MakesuretheXMLisexactlyasitappearsbelow: Xml xmlversion="1.0"encoding="utf-8"? > Url="Sample.Silverlight.App.xap" Type="GhostableInLibrary"/> 27.SavetheElements.xmlfile. AddamoduletodeployacustomASPXpagethatincludesaSilverlightWebPartconfiguredtodisplaythenewSilverlightapplication. 28.Right-clicktheSharePoint.Silverlight.DeploymentSharePointprojectandchooseAdd->NewItem. 29.SelectVisualC#->SharePoint->2010->Module. 30.NamethemoduleCustomPages. 31.ClickAdd. 32.IntheSolutionExplorer,right-clicktheSample.txtfileandselectDelete. 33.ClickOK. AddtheTimeEntrySearchPage.aspxincludedinthestudentfilestothemodule. 34.Right-clicktheCustomPagesmodule. 35.SelectAdd>>ExistingItem. 36.Browsetothe 37.ClickAdd. 38.OpentheElements.xmlfileincludedintheCustomPagesmoduleandreplacethecontentwiththefollowingXml: Xml xmlversion="1.0"encoding="utf-8"? > [CDATA[
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HandsOn Lab
![提示](https://static.bdocx.com/images/bang_tan.gif)