visual studio – ERROR: E2020 the managed null ptr type cannot be used here

ERROR: E2020 the managed null ptr type cannot be used here

I created my project on Microsoft.Visual Studio.SDK version 17.2.32505.173 Then I left my project for a long time. Now I’m back and Visual Studio has been updated and now my project has errors –

Error (active) E2020 the managed null ptr type cannot be used here F:\VisualStudio\Core\VC\Tools\MSVC\14.36.32532\include\exception 227

That is, the error E2020 refers to IntelliSense, not to Build. My project is going great. Question: how to remove these errors? Do they affect something?

dependencies:

#include <Windows.h> #include <fstream> #include <string> #include <msclr/marshal_cppstd.h> #define CURL_STATICLIB #include <curl/curl.h> #include <sstream> #include <map> #include <iostream> #include <thread> #include <chrono>

I will be grateful for help in solving my problem

I noticed that if I remove all dependencies, the errors disappear. How to fix it?
I was clearing the cache and reinstalling VS. I tried to run it on another device. With dependencies I get these errors E2020
Deleting dependencies by several results did not give

Read more here: Source link