Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Could not publish .Net 6 App #55

Open
qtnemo opened this issue Jun 14, 2023 · 0 comments
Open

Could not publish .Net 6 App #55

qtnemo opened this issue Jun 14, 2023 · 0 comments

Comments

@qtnemo
Copy link

qtnemo commented Jun 14, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant