Package 'MicrosoftWebInfrastructure.1.0.0' is not found on source 'https://api.nuget.org/v3/index.json'

Jipson P J 1 Reputation point
2023-01-03T07:00:56.153+00:00

Error NuGet Package restore failed for project 1. Presentation Layer\eMDMS.Presentation: Unable to find version '1.0.0' of package 'MicrosoftWebInfrastructure'.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'MicrosoftWebInfrastructure.1.0.0' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
https://api.nuget.org/v3/index.json: Package 'MicrosoftWebInfrastructure.1.0.0' is not found on source 'https://api.nuget.org/v3/index.json'.
. Please see Error List window for detailed warnings and errors.

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
961 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2023-01-03T13:46:26.1+00:00

    Hi @Jipson P J ,

    Welcome to Microsoft Q&A forum.

    If you are using .NET Framework based project, and there’s a packages.config file in your project. Please open this packages.config file and make sure that the id of the NuGet package is correct. For example:

    <packages>  
      <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="netXXX" />  
    </packages>  
    

    Please also right-click your project > Unload Project > right-click it again > Edit Project File > scroll down and check if this NuGet package was referenced. Make sure that the id/name is correct too.

    After that, please click Tools > Options > NuGet Package Manager > General > Clear All NuGet Storage, and restore NuGet Packages(right-click your solution > Restore NuGet Packages).

    Feel free to contact us.

    Best Regards,
    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.