sharepoint - 项目 myProjectWeb : Unable to find version '3.0.1' of package 'AppForSharePoint16WebToolkit' 的 NuGet 包还原失败

标签 sharepoint nuget

这是一个提供者托管的项目。它曾经工作到最近。

如果我创建一个全新的项目/解决方案,那么它就可以工作。

如果我启动旧的,或者从源代码管理重新下载它,我会收到以下错误:

NuGet Package restore failed for project LocalTheaterWeb: Unable to find version '3.0.1' of package 'AppForSharePoint16WebToolkit'



我试过 Update-Package -Reinstall但问题仍然存在。

有任何想法吗?

最佳答案

Scott Hillier 的解决方案为我做到了:

http://www.shillier.com/archive/2014/08/05/nuget-package-restore-fails-for-sharepoint-2013-provider-hosted-apps.aspx

I often take advantage of the NuGet Package Restore capability to reduce the size of my projects when saving or sharing them. Today, I discovered an issue with this process when building SharePoint 2013 Provider-Hosted Apps against SharePoint Online. Here are the steps to reproduce and the fix:

  1. Create a Provider-Hosted App in Visual Studio 2013 using a SharePoint Online site for debugging.
  2. Right click solution and "Enable NuGet Package Restore"
  3. Save and Close Project
  4. Delete the “packages” folder from project directory
  5. Open Project in Visual Studio 2013
  6. Rebuild, receive error “Unable to find AppForSharePoint16WebToolkit”
  7. Open Packages.config file
  8. Change “AppForSharePoint16WebToolkit” to “AppForSharePointWebToolkit”
  9. Rebuild – successfully this time. Apparently, the "AppForSharePoint16WebToolkit" package is not available through the NuGet Package Manager, but the older "AppForSharePointWebToolkit" package is available.

关于sharepoint - 项目 myProjectWeb : Unable to find version '3.0.1' of package 'AppForSharePoint16WebToolkit' 的 NuGet 包还原失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24303669/

相关文章:

c# - 在引用多目标类库时,如何让 NuGet 知道包的特定版本?

excel - 将共享点列表与多个 Excel 文件同步

sharepoint - 场类型初始化程序异常中的 MOSS 2007 站点

c# - 在同一个 NuGet 包中为 .Net 4.7.2 和 .Net 6.0 构建?

visual-studio - nuget.org 和 api.nuget.org 之间有什么区别

c# - NuGet 包安装失败并出现未指定的错误

javascript - ECMAScript 不适用于匿名用户

unit-testing - 痣和 SharePoint 行为类型

c# - 为 InfoPath 表单选择 Sharepoint 保存位置

winforms - 将从 nuget 下载的组件添加到工具箱的推荐方法是什么?