简体   繁体   English

适用于vs 2012的WSPBuilder

[英]WSPBuilder for vs 2012

I am new to SharePoint 2013. I am using trial version vs 2012. I want to use the WSPBuilder to develop the web parts. 我是SharePoint 2013的新手。我使用的是试用版vs2012。我想使用WSPBuilder开发Web部件。 I have install the WSPBuilder and it is not showing in vs 2012. 我已经安装了WSPBuilder,它在vs 2012中没有显示。

I have used the below link but not solved the issue. 我使用了以下链接,但未解决问题。

http://gblsharepoint.blogspot.in/2013/01/using-wspbuilder-with-visual-studio-2012.htm http://gblsharepoint.blogspot.in/2013/01/using-wspbuilder-with-visual-studio-2012.htm

I have done the copy and past the "Microsoft Visual Studio" and "Microsoft Visual Studio Macros" hot applications and given the version as "11.0". 我已经完成复制并通过了“ Microsoft Visual Studio”和“ Microsoft Visual Studio Macros”热应用程序,并将版本指定为“ 11.0”。 It is working. 这是工作。

Can any one help me 谁能帮我

WSP Builder had it's use back in the SharePoint 2007 days, where Visual Studio had no support for SharePoint packages. WSP Builder可以在SharePoint 2007时代使用,而Visual Studio不支持SharePoint包。

Ever since the release of Visual Studio 2010 and Visual Studio 2012 there is no real need for WSP Builder anymore. 自从Visual Studio 2010和Visual Studio 2012发布以来,就不再需要WSP Builder。

In order to use Visual Studio 2012 with SharePoint 2013 you will have to install an additional package though. 为了将Visual Studio 2012与SharePoint 2013一起使用,您将必须安装其他程序包。 To install it, launch the Web Platform Installer (or download the installer if it's not on your server from http://www.microsoft.com/web/downloads/platform.aspx ). 要安装它,请启动Web平台安装程序(如果不在服务器上,请从http://www.microsoft.com/web/downloads/platform.aspx下载该安装程序)。 In the installer, search for SharePoint. 在安装程序中,搜索SharePoint。 From the results, install Microsoft Office Developer Tools for Visual Studio 2012. 从结果中,安装适用于Visual Studio 2012的Microsoft Office开发人员工具。

Launch Visual Studio and when you create a new project/solution you should see a Office/SharePoint category. 启动Visual Studio,并在创建新项目/解决方案时看到Office / SharePoint类别。 Underneath there, pick the SharePoint Solutions category. 在下面,选择“ SharePoint解决方案”类别。 If you just want to create a single webpart in a WSP file, then the easiest is to pick the "SharePoint 2013 - Visual Web Part" project item. 如果只想在WSP文件中创建单个Web部件,则最简单的方法是选择“ SharePoint 2013-Visual Web部件”项目。 That will set you with a project containing a feature, a visual webpart that you can extend with your own code, etc. Build the webpart and you will end up with a WSP file in your debug/release folders that you can deploy to your server (or by simply pressing F5 it will automatically deploy it to the farm / site you specified when creating the project). 这将为您设置一个包含功能的项目,一个可视化Web部件,您可以使用自己的代码对其进行扩展,等等。构建该Web部件,最终在调试/发布文件夹中得到一个WSP文件,您可以将该WSP文件部署到服务器上(或者只需按F5键,它将自动将其部署到创建项目时指定的服务器场/站点中)。

If you use F5 to deploy, don't forget to add the webpart to a page after deployment as Visual Studio will not do that for you (Edit a page, switch to the insert tab in the ribbon, pick your webpart. Your webpart will be under the 'custom' category if you don't modify the elements.xml file of the webpart). 如果使用F5进行部署,请不要忘记在部署后将Webpart添加到页面中,因为Visual Studio不会为您这样做(编辑页面,切换到功能区中的“插入”选项卡,选择您的WebPart。您的WebPart将如果您不修改Webpart的elements.xml文件,则将其置于“自定义”类别下。

I can also recommend you to download the new version of CKS Dev Tools for VS2012 and SP2013. 我还建议您下载适用于VS2012和SP2013的CKS开发工具的新版本。 Several handy functions that will help you in your everyday work, developing SharePoint solutions. 几个方便的功能将在您的日常工作中帮助您开发SharePoint解决方案。 http://cksdev.codeplex.com http://cksdev.codeplex.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM