At compile I get error CS0138: A using namespace directive can only be applied to namespaces

You are trying to designate a class instead of a namespace for the 
using statement.
For example:


using System.Console;

This is not correct because the using statement only works with namespaces, while Console is a class.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top