Search code examples
c#consolenamespaceswindows-phone

using a namespace in c#


I am creating a game for windows phone in C# and I want to test out some output and other data through the console. How do I include the classes (or the namespace) from the phone application into a console project?


Solution

  • At the top of your source code:

    using YourNameSpace;
    

    Ensure that you have the code library referenced in your project, like so:

    1. In your Object Explorer, locate References
    2. Right-click References and select Add Reference...
    3. Locate the DLL that contains your namespace either in the GAC or through the Browse tab