Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

The type or namespace name 'JsonSchema' could not be found

I’ve just added a nuget package for JSON validation. The docs do not specify how to "import" this package to the project and when I add using JsonSchema.Net the compiler complains The type or namespace name 'JsonSchema' could not be found. What’s going on here?

Here’s how I added the package.

dotnet add package JsonSchema.Net --version 2.3.0

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There isn’t a namespace JsonSchema.Net of version 2.3.0 from the GitHub project json-everything of this NuGet source code.

I think you might want to use Json.Schema instead of JsonSchema.Net.

There is a class JsonSchema that might help us do JSON validation.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading