Azure / Azure/actions

SharePoint Provider-Hosted app cannot restore local package

Open
#155 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
485
Forks
186
PR merge metrics
No merged PRs in 30d

Description

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 ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.