gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 17:48:42 27 4
gpt4 key购买 nike

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

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

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

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com