Skip to content

Could not publish .Net 6 App #55

@qtnemo

Description

@qtnemo

We can build and run the app with B2.net package in both Debug and Release mode. However, when publishing the app, VS shows a bunch of errors such as:

C:\Projects\Test.API\Test.API.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.
Test.API -> Test.Infrastructure -> B2Net 0.7.5 -> NETStandard.Library 1.6.0 -> System.Console 4.0.0 -> runtime.win.System.Console 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0)
Test.API -> Test.Infrastructure -> B2Net 0.7.5 -> NETStandard.Library 1.6.0 -> System.IO.FileSystem.Primitives (>= 4.0.1)
C:\Projects\Test.API\Test.API.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.
Test.API -> Test.Infrastructure -> B2Net 0.7.5 -> NETStandard.Library 1.6.0 -> System.IO.FileSystem 4.0.1 -> runtime.win.System.IO.FileSystem 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0)
Test.API -> Test.Infrastructure -> B2Net 0.7.5 -> NETStandard.Library 1.6.0 -> System.IO.FileSystem.Primitives (>= 4.0.1)

These packages are not referenced directly in the project so we can manually change the version. Any suggestions on how to resolve this problem? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions