Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharePoint Provider-Hosted app cannot restore local package #155

Open
sosandumsft opened this issue Jun 9, 2023 · 0 comments
Open

SharePoint Provider-Hosted app cannot restore local package #155

sosandumsft opened this issue Jun 9, 2023 · 0 comments

Comments

@sosandumsft
Copy link

On a SharePoint Provider-Hosted app we have by default AppForSharePointOnlineWebToolkit.4.0.0.nupkg from local folder C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Microsoft\SharePoint\NuGet Packages
Using an github workflow to build and publish to an App service in Azure fails on build (nuget restore) with error
Unable to find version '4.0.0' of package 'AppForSharePointOnlineWebToolkit'.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'AppForSharePointOnlineWebToolkit.4.0.0' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'.
https://api.nuget.org/v3/index.json: Package 'AppForSharePointOnlineWebToolkit.4.0.0' is not found on source 'https://api.nuget.org/v3/index.json'.
Unable to find version '4.0.0' of package 'AppForSharePointOnlineWebToolkit'.

  C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'AppForSharePointOnlineWebToolkit.4.0.0' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.

NuGet Config files used:
https://api.nuget.org/v3/index.json: Package 'AppForSharePointOnlineWebToolkit.4.0.0' is not found on source 'https://api.nuget.org/v3/index.json'.
C:\Users\runneradmin\AppData\Roaming\NuGet\NuGet.Config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.FallbackLocation.config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
How I can resolve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant