Mono: Error CS0518

This a dumb problem I ran into today that might help someone… upgrading an XNA 2.x project to mono, got a bunch of errors:

Error CS0518 : The predefined type ‘System.whatever’ is not defined or imported.

Open whatever .csproj in a texteditor, there is as hidden xml tag in those old .csproj files that needs to be removed:

<NoStdLib>true</NoStdLib>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s