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

Could not load file or assembly 'JsonPointer.Net, Version=5.0.0.0, Culture=neutral, PublicKeyToken=17ed63f672b0e278'. The system cannot find the file specified. #723

Closed
1 task done
na1307 opened this issue May 1, 2024 · 10 comments
Labels
bug Something isn't working pkg:schema

Comments

@na1307
Copy link

na1307 commented May 1, 2024

Nuget Package

JsonSchema.Net

Package Version

7.0.0

Operating System

Windows

.Net Target (if relevant, please specify the version in the description)

.Net (5 or after)

A clear and concise description of the bug.

When I use JsonSchema.Net 7.0.0 and try to evaluate the schema I get a FileNotFoundException.

What did you expect?

The schema is evaluated normally.

Please add test code or steps to reproduce the behavior.

Try schema evaluation using JsonSchema.Net 7.0.0.

Is there any other information you'd like to share regarding this bug?

No response

Code of Conduct & Contributor Guidelines

  • I agree to follow this project's Code of Conduct and Contribution Guidelines.
@na1307 na1307 added the bug Something isn't working label May 1, 2024
@gregsdennis
Copy link
Collaborator

Odd. Thanks for the report.

Checking the package, it looks like the dependency is listed as JsonPointer.Net v4.

I'll have a look. The build usually gets all the dependencies right.

@gregsdennis
Copy link
Collaborator

The package that built locally has a v5 dependency. I'm not sure what's going on. I'll try to push a repackage update.

@gregsdennis
Copy link
Collaborator

@na1307 please try manually referencing JsonPointer.Net v5.

@na1307
Copy link
Author

na1307 commented May 1, 2024

화면 캡처 2024-05-01 180358

I referred it manually, and there is no problem.

@gregsdennis
Copy link
Collaborator

gregsdennis commented May 1, 2024

Looks like I forgot that I use a nuspec file for JsonSchema.Net, and I needed to update the dependency there.

I'm pushing v7.0.0.2. Please let me know if that works for you. (Remove the explicit reference to JsonPointer.Net)

Nuget has the right dependencies listed now:
image

@na1307
Copy link
Author

na1307 commented May 1, 2024

Now I get NU1605.

화면 캡처 2024-05-01 181346

@gregsdennis
Copy link
Collaborator

ConsoleApp1 -> JsonSchema.Net 7.0.0.2 -> JsonPointer.Net 5.0.0 -> Json.More.Net (>= 2.0.1.2)
ConsoleApp1 -> JsonSchema.Net 7.0.0.2 -> Json.More.Net (>= 2.0.0)

... That's such a stupid error. Nuget should be smart enough to take the later of the two. That's what >= means.

v7.0.0.3 incoming...

@gregsdennis
Copy link
Collaborator

I need to build automation to check that I've updated the nuspec if the major version or one of the dependency major versions change.

@na1307
Copy link
Author

na1307 commented May 1, 2024

I tried 7.0.0.3 and it seems to be fine now. Schema evaluation also seems to work fine.
화면 캡처 2024-05-01 182643

@gregsdennis
Copy link
Collaborator

Thanks for verifying. Let me know if you have further issues.

@na1307 na1307 closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:schema
Projects
None yet
Development

No branches or pull requests

2 participants