Click here to Skip to main content
16,017,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
0 In Visual Studio 2019 - I get this error :

global::System

CS0400 Type or Namespace 'System' cannot be found in the global namespace (missing reference?)

Really having a hard time with this one .. Any solved this maybe in the recent past ?

Thanks !

What I have tried:

Adding references , but a warning icon appears ...
Posted
Comments
Rick York 13-Aug-24 11:55am    
Are you trying to use a C# library with native C++?

1 solution

hi Rick - this is native c++

Visual Studio 2019 ENT
 
Share this answer
 
Comments
Richard MacCutchan 13-Aug-24 12:09pm    
If this is native C++ why are you using the C# compiler to process it? And a couple of other issues:
1. Please show the actual code that causes the error rather than just a couple of words. The context is always important.
2. If you wish to reply to a comment, or an answer, then please use the Reply button above the message. Don't post them as solutions.
3. If you have more information then please use the Improve question link above, and add complete details of what is not working.
Richard MacCutchan 13-Aug-24 12:10pm    
And looking at your previous question here it seems you are still confused between C# and C++.
Dave Kreskowiak 13-Aug-24 12:28pm    
You're still confusing C++ and C#. Again, it seems you typed C++ code into a C# application and expected it to compile. That's not going to happen.

Also, you're trying to reply to comments, but you're typing your comments as SOLUTIONS/ANSWERS to your own question.

See the little "Reply" button on the comment you want to reply to? Click that!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900