Skip to content

wrong Newtonsoft.json when publish #34

Open

Description

@atajadod

It seems like there is something wrong with Microsoft.AspNetCore.Authentication.JwtBearer library. I made an API that uses this library. it works perfect in dev.
But when I publish in production (Release, Self-Contained, win-x64) , I am getting error indicating Newtonsoft.json version 10.0 not found (and further complaining about not able to get config from my IdentityServer).
My debug folder has version 10.0.1, but my publish folder has version 9.0.1 !
The error goes away when I manually replace the NewtonSoft.json with the one in my debug folder.
I am using
.NetCore 3.1.
Microsoft.AspNetCore.Authentication.JwtBearer 3.1.7

Activity

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

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