惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - KXLF

SharePoint 事件 2137 / 2138 :SharePoint 运行状况分析器检测到错误。驱动器的可用空间不足。 SharePoint 事件 7363:对象缓存:缓存使用的超级读者帐户没有足够的权限访问SharePoint数据库。 [转] geochart 地图控件官方示例 Outlook 2007 同步到本地的SharePoint文档库,点击不同文件夹时,总是弹出登陆框 [转]Publishing files stored in the file system through external list(使用bcs映射文件系统) SPContext.Current.Web.CurrentUser 为 null [转]Use PowerShell to Manage Lists, Views, and Items in SharePoint(使用PowerShell管理列表、视图、列表项) 连接TFS服务器记住密码。 [转]Login over HTTPS from HTTP pages(使用https登陆) [转]How to Handle Long PowerShell Statements(在PowerShell中使用多行模式) [转]How to use String.Format in PowerShell?(如何在PowerShell中使用string.format?) 推荐一个电子书网站,里面关于SharePoint的英文书籍有很多。 SharePoint 2010 术语表 [转]SharePoint 2010: Client Object Model for JavaScript (ECMAScript)(使用客户端对象模型) [转]Import List Instances and their data with Mavention Import List Instance(使用VS插件导出列表数据定义) [转]how to programatically access built-in properties of open xml word doc(如何读取open xml格式文档属性) [转]Content targeting for anonymous users with SharePoint Server 2010(给匿名用户配置外部配置文件) [转]Allowing anonymous users access to SharePoint user's profile pictures(允许匿名用户访问用户配置文件中的头像图片) [转][MS-MAVA]: Microsoft Office SharePoint Server (MOSS) Analytics View Access Protocol Specification
[转]Importing documents to Document Libraries with Mavention Import Document Library Contents(使用VS插件导出文档库内容定义)
KXLF · 2011-11-03 · via 博客园 - KXLF

Recently I showed you how you can import Lists and their data into your SharePoint Project using the Mavention Import List Instance extension. As you can imagine supporting list data is only half of the story, so to complete it another extension became available. Find out how to import documents from Document Libraries into your SharePoint project using Mavention Import Document Library Contents.

Last week we discussed how test data can help you test your SharePoint solutions and how you can import list data into your SharePoint Project for repeatable deployment. In my articles I covered only list data. However, as we all know, many SharePoint solutions include not only Lists but also Document Libraries and their data. So in order to be really productive you have to have a solution to cover both types of lists.

List Items and Files in Document Libraries are not quite the same from the deployment point of view. In order to provision List Items to a List you have to use the ListInstance element with all the data specified in the Data element. On the other hand to provision a document to a Document Library you have to use a Module and include not only the metadata but also the document itself.

Importing documents into SharePoint Project with Mavention Import Document Library Contents

Mavention Import Document Library Contents is an extension for the Visual Studio 2010 SharePoint Developer Tools which is very similar to the Mavention Import List Instance extension I presented previously.

After installing the extension a new option called Import Document Library Contents is added to the context menu of all Document Libraries in the Server Explorer.

The ‘Import Document Library Contents’ menu option highlighted in the context menu of a Document Library in the Server Explorer

After you click the option the contents of the selected Document Library will be imported to your SharePoint Project.

Important: For this to work you have to have a SharePoint Project open and active in Visual Studio 2010.

During the import process, the extension will create in the active SharePoint Project a new Module called after the selected Document Library. All files will be downloaded and included in the project structured just as they were in the selected Document Library.

File tree imported into a SharePoint Project

Together with downloading the files and including them in the active SharePoint Project, the Mavention Import Document Library Contents extension will update the Element Manifest so that all files can be provisioned to a Document Library.

Element Manifest generated by Mavention Import Document Library Contents

The only thing left for you to do is to add the imported Module to a Feature and once you activate it, all files from the imported Module should be provisioned to SharePoint.

Tip: As you might have noticed the extension imports all files with all available properties. To keep the imported files clean you should remove all unnecessary files (such as List Forms) and properties. In my next post I will show you how you can modify the XSLT we used previously for cleaning List Instance data, to clean up unwanted document properties in a Module.

And this is it! Using the Mavention Import Document Library Content extension you can import Documents from a Document Library into you SharePoint Project with a single mouse click.

Download: Mavention Import Document Library Contents from Visual Studio Gallery.