Skip to content

SharePoint Provider-Hosted app cannot restore local package #155

@sosandumsft

Description

@sosandumsft

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions