Question

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

Good day.

Please tell me what I'm doing wrong.

 

Added to the package's .csproj file



             $(CoreLibPath)\Newtonsoft.Json.dll

             False

             false



 

I use in the code:

using Newtonsoft.Json;

using Newtonsoft.Json.Linq;

 

But when publishing, the system gives me:

The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

Like 0

Like

3 comments

Thanks, problem solved

Greetings Демчук, can you share how did you solve the problem?

 

I added to the package's .csproj file

$(CoreLibPath)\Newtonsoft.Json.dll, and saved via ftp in Linux OS.

But when I uploaded this file for editing, this file did not contain these lines.

Just forgot to assign access rights to the directory.

Show all comments