简体   繁体   中英

Visual Studio does not clear error list cache

enter image description here Visual Studio does not consider changes. Initially, I had a few libraries not properly set. Therefore, there were compile time errors. Then I added missing DLLs, and the errors disappeared in the code. However, Visual Studio still says there are errors, and does not allow to build the project.

I tried many ways to handle the problem, none of them was successful. Already tried ways:

  1. ReSharper > Options > General > Clear Cache
  2. Tools > C# > Advanced > Enable full solution analysis
  3. Deleting .vs folder
  4. Clearing VS' temp folder from \\AppData\\Local\\Microsoft\\WebsiteCache
  5. Restarting Visual Studio
  6. Restarting my own machine
  7. Clean the solution, project itself
  8. Attempt to Rebuild everything
  9. Unload/Reload solution and project
  10. I hope this will be found here and solve the problem

This is the error I am seing:

错误“找不到 Newtonsoft 的类型或命名空间”

Thank you all The problem was that Newtonsoft.Json Dll I used was for .net 4.5, but the project is in 4.0. Therefore, it did not work properly.

I changed Newtosfot.Json dll .net45 to .net40 and everything is working fine now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM