I’ve已将内容部署向导的更新版本发布到Codeplex(2.8版)– 此版本支持SharePoint 2010。内容部署向导是我相当流行的工具,用于在SharePoint环境中移动内容– if you 有n’在此之前,您可以选择网站集,网站,列表,文件夹,文件或列表项,以导出到文件中以导入其他地方:
此版本有两个目的:
- 修复‘Object reference’先前版本(2.7)常见的错误
我花了一些时间才意识到,但这经常发生,如果经常使用2.7,您很可能已经看到了这个问题-道歉。看来这是由 亚历克斯 在他为该发行版贡献的代码中,但这是一个不寻常的线程错误,坦率地说,’m sure if I’d编写了可能也会打我的代码!再次感谢您的贡献,Alex。
- 的SharePoint 2010支持
好吧,所以我在文章开始时就有点说实话– in fact 所有 版本的工具已经支持SharePoint2010。这是因为Microsoft中没有重大更改’我的代码在2007-2010年之间使用的s API,’在.exe.config文件中需要几个条目来重定向拾取的程序集。但是它’很难在本文的标题或第一句话中传达该信息,而我’我发现那些不这样做的人’不了解 .Net程序集重定向 只是不要’t believe I didn’t 有 to ‘创建支持2010的新版本’ :) That said, I 有 进行了一些改进以使其更容易:
-2.8安装程序会为您添加适当的BindingRedirect条目到配置文件中,但已被注释掉。如果要在SP2010上安装,只需取消注释这些即可
-2.8安装程序可将stsadmcommands.COB.SPDeploymentWizard.xml文件正确安装到 14\ CONFIG目录(如果已安装)(例如,因为已安装SharePoint 2010)以确保STSADM命令正常运行
作为参考,SP2010所需的.exe.config文件条目为:<!-- Uncomment this section to use the 巫师 with 的SharePoint 2010 - this will ensure the 的SharePoint 2010 assemblies 是 used. -->
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="71e9bce111e9429c" culture="neutral" />
<bindingRedirect oldVersion="11.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.SharePoint.Publishing" publicKeyToken="71e9bce111e9429c" culture="neutral" />
<bindingRedirect oldVersion="11.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>