Results 1 to 5 of 5

Thread: (2010) properties namespace isn't there unless i list project in front.

Hybrid View

  1. #1

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    (2010) properties namespace isn't there unless i list project in front.

    I had a heck of a time even figuring out how to create the settings.settings file, since xna apps don't come with it, but i figured it out. Now the problem is that i am supposed to access the settings through the Properties namespace but it's not available by normal means. I have to type the project namespace first like this:
    wormipede_xna_v2.properties.default. etc...

    in my solution explorer, it says i have two projects, wormipede, and wormipedecontent. I don't know if this is related, but an hour long google-fest only told me that if it didn't show up then the compiler didn't know where it was and it would be caused by more than one namespace.
    Last edited by Lord Orwell; Mar 9th, 2011 at 11:20 AM.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  2. #2
    PowerPoster Evil_Giraffe's Avatar
    Join Date
    Aug 2002
    Location
    Suffolk, UK
    Posts
    2,555

    Re: (2010) properties namespace isn't there unless i list project in front.

    What namespace is the code that is trying to access the Settings in? It sounds like it might be in "wormipede" namespace. If this is the case, then you will need to qualify anything you're trying to access in the "wormipede_xna_v2" namespace, yes.

  3. #3

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: (2010) properties namespace isn't there unless i list project in front.

    nothing i found anywhere on line suggested this to be the case
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    Re: (2010) properties namespace isn't there unless i list project in front.

    You could just type at the top of the file:

    using wormipede_xna_v2;

    Then you don't have to type the namespace all the time.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  5. #5

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: (2010) properties namespace isn't there unless i list project in front.

    hmmmmmmm i'll try that . Will get back to you. I was under the impression i was supposed to be using it anyway with explicitly declaring it, but perhaps not since i don't have any forms?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width