I try to : Install-Package Microsoft.Office.Interop.Outlook -Version 15.0.4797.1004

Gherca,Marius 25 Reputation points
2024-04-02T18:01:30.2733333+00:00

Hi there, I want to install this package but either after reisntallation of Visual studio comunity 2022 i get the same result, so how to fox this: I also tried by navigating in NuGet library but the result is the same, i founded the pack in Browse but after click Isntall, i have the same result, not found in sources. Please help.

"PM> NuGet\Install-Package Microsoft.Office.Interop.Outlook -Version 15.0.4797.1004

Tentative de collecte d'informations de dépendance pour le package 'Microsoft.Office.Interop.Outlook.15.0.4797.1004' du projet 'OGAC', ciblant '.NETFramework,Version=v4.8.1'

NuGet\Install-Package : Le package «Microsoft.Office.Interop.Outlook 15.0.4797.1004» est introuvable dans la ou les sources principales suivantes: «https://api.nuget.org/v3/index.json. Vérifiez que toutes vos sources de package en ligne sont disponibles (OU) que

l'ID de package et la version sont spécifiés correctement.

Au caractère Ligne:1 : 1

  • NuGet\Install-Package Microsoft.Office.Interop.Outlook -Version 15.0. ...
  • 
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
     
    
    

Temps écoulé : 00:00:01.2018997

PM>

Developer technologies | Visual Studio | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,326 Reputation points
    2024-04-02T19:56:43.91+00:00

    Not sure what your nuget\ thing is here. Go to Package Manager Console in Visual Studio. At the prompt type Find-Package Microsoft.Office.Interop.Outlook and show us what the results are.

    Under the Package Source combo at the top of the console show us what sources you have configured.

    Still within the console type $host and show us what the output is.

    To confirm you have a project open and it is targeting NET 4.8.1?

    0 comments No comments

  2. Gherca,Marius 25 Reputation points
    2024-04-08T11:10:34.7433333+00:00

    I opened a new solution and I

    Clear all NutGet stockage
    and checked
    Allow format selection during the first package installation

    I installed the package.

    I opende my solution and I was able to install the same package.

    Now, Before installing any package I go in other solution always opened, with no code, I install the package, I switch to my solution, clear all NutGet stockage and I can add the package. Make any sense!? THX for your help guys.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.