Skip to content

Fail while uploading Microsoft.EntityFrameworkCore.Analyzers to local BaGet server #36991

@CryingMisu

Description

@CryingMisu

When trying to upload a package "Microsoft.EntityFrameworkCore.Analyzers" to BaGet server using command
nuget.exe push Microsoft.EntityFrameworkCore.Analyzers.nupkg -ApiKey <apiKey> -Source <source> -SkipDuplicate

, the server returns a 402 error. The server logs say:

fail: BaGet.Core.PackageIndexingService[0]
Uploaded package is invalid
System.IO.FileNotFoundException: docs\PACKAGE.md
at Nuget.Packaging.ZipArchiveExtensions.LookupEntry(ZipArchive zipArchive, String path)
at Nuget.Packaging.PackageArchiveReader.GetStream(String path)
at Nuget.Packaging.PackageReaderBase.GetStreamAsync(String path, CancellationToken cancellationToken)
at BaGet.Core.PackageArchiveReaderExtensions.GetReadmeAsync(PackageArchiveReader package, CancellationToken cancellationToken) in /src/BaGet.Core/Extensions/PackageArchiveReaderExtensions.cs: line 33
at BaGet.Core.PackageIndexingService.IndexAsync(Stream packageStream, CancellationToken cancellationToken) in /src/BaGet.Core/Indexing/PackageIndexingService.cs: line 163

[Microsoft.EntityFrameworkCore.Analyzers version 8.0.20]

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