type or namespace name 'Newtonsoft' could not be found

半城伤御伤魂 提交于 2019-12-05 02:19:36
Gonzalo.-

When you copy files of a solutions, some references can be "lost". Try to delete the reference and add it again, after you copied the files and open in the other machine.

Also, take a look at this question: reference dll not copying to bin with deployment project causing error

Thanks for the pointer and the link. After a struggle I got it to work. What finally happened was my friend, an expert in .NET Skyped me and talked me through the proper way of deploying my project to the destination server. I didn't understand that there is a separate folder where your Build goes. I made a "Build Deployment Package" as a zip file. Then I unzipped it on my hard drive, and dropped it into a clean folder on the web server (actually, I uploaded it to the root directory), and voila, it worked.

Another possible reason for this issue is if the project is using NuGet packages and they haven't been restored (downloaded) yet.

They may need to be restored in Visual Studio or you can use the nuget.exe command-line executable to restore the packages.

https://docs.nuget.org/consume/package-restore

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!