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

cannot find package in nuget #357

Open
pbarone opened this issue Jan 14, 2024 · 3 comments
Open

cannot find package in nuget #357

pbarone opened this issue Jan 14, 2024 · 3 comments

Comments

@pbarone
Copy link

pbarone commented Jan 14, 2024

WinForms project with .NET8. When trying to install the package from the Package Manager Console I get the below:

PM> Install-Package MetadataExtractor
Install-Package : Unable to find package 'MetadataExtractor'
At line:1 char:1
+ Install-Package MetadataExtractor
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 
Time Elapsed: 00:00:00.3459234

Not sure if this is the right place to ask for help with this, can anybody help?

@pbarone
Copy link
Author

pbarone commented Jan 14, 2024

Looks like it works if I pick .NET 6. Any plans to make this compatible with .NET 8?

@drewnoakes
Copy link
Owner

.NET 8 support is expected to work.

What if you add this to your .csproj file:

<ItemGroup>
  <PackageReference Include="MetadataExtractor" Version="2.8.1" />
</ItemGroup>

@drewnoakes
Copy link
Owner

drewnoakes commented Jan 16, 2024

Just tested this on a .NET 8 console app and it worked for me:

PM> Install-Package MetadataExtractor
Restoring packages for C:\Users\drnoakes\source\repos\ConsoleApp556\ConsoleApp556\ConsoleApp556.csproj...
  GET https://api.nuget.org/v3/vulnerabilities/index.json
  OK https://api.nuget.org/v3/vulnerabilities/index.json 27ms
  GET https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/vulnerability.base.json
  GET https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/2024.01.15.17.27.04/vulnerability.update.json
  OK https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/vulnerability.base.json 9ms
  OK https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/2024.01.15.17.27.04/vulnerability.update.json 28ms
Installing NuGet package MetadataExtractor 2.8.1.
Writing assets file to disk. Path: C:\Users\drnoakes\source\repos\ConsoleApp556\ConsoleApp556\obj\project.assets.json
Restored C:\Users\drnoakes\source\repos\ConsoleApp556\ConsoleApp556\ConsoleApp556.csproj (in 495 ms).
Successfully installed 'MetadataExtractor 2.8.1' to ConsoleApp556
Successfully installed 'Microsoft.NETCore.Platforms 2.1.2' to ConsoleApp556
Successfully installed 'System.Runtime.CompilerServices.Unsafe 4.5.2' to ConsoleApp556
Successfully installed 'System.Text.Encoding.CodePages 4.5.1' to ConsoleApp556
Successfully installed 'XmpCore 6.1.10.1' to ConsoleApp556
Executing nuget actions took 594 ms
Time Elapsed: 00:00:06.1577814
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="MetadataExtractor" Version="2.8.1" />
  </ItemGroup>

</Project>

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

No branches or pull requests

2 participants