Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with C#
#14
Loose Wrote:What's the name of your project? The 'namespace' has to be the same as your project, if it isn't, it throws that error at you.
Completely wrong. You can name your namespaces whatever you want.

Quote:The errors say the same thing: 'The type or namespace name 'Game1' could not be found (are you missing a directive or an assembly reference?'
Listen to the compiler. You are either missing a using a directive ("using MyNamespace;"), an assembly reference (if the Game1 class is in a different project), or perhaps you intended the Program class to be in the same namespace as the Game1 class but you accidentally put them in difference namespaces.
Reply


Messages In This Thread
Problems with C# - by Haseo - 2011-09-24, 03:32 PM
Problems with C# - by Spaz - 2011-09-24, 04:49 PM
Problems with C# - by Haseo - 2011-09-29, 06:43 AM
Problems with C# - by Katforks - 2011-09-29, 11:58 AM
Problems with C# - by Spaz - 2011-09-29, 05:54 PM
Problems with C# - by Heidi - 2011-09-29, 06:15 PM
Problems with C# - by Haseo - 2011-09-30, 01:02 PM
Problems with C# - by Nikkey - 2011-09-30, 01:23 PM
Problems with C# - by Heidi - 2011-09-30, 06:43 PM
Problems with C# - by Haseo - 2011-10-14, 08:28 PM
Problems with C# - by OB3LISK - 2011-10-14, 09:16 PM
Problems with C# - by Heidi - 2011-10-14, 09:49 PM
Problems with C# - by Loose - 2011-10-14, 10:39 PM
Problems with C# - by Spaz - 2011-10-14, 11:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)