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

wrong Newtonsoft.json when publish #34

Open
atajadod opened this issue Sep 4, 2020 · 0 comments
Open

wrong Newtonsoft.json when publish #34

atajadod opened this issue Sep 4, 2020 · 0 comments

Comments

@atajadod
Copy link

atajadod commented Sep 4, 2020

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

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

No branches or pull requests

1 participant