|
-
Mar 9th, 2011, 12:27 AM
#1
(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.
-
Mar 9th, 2011, 07:13 PM
#2
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.
-
Mar 9th, 2011, 10:24 PM
#3
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
-
Mar 9th, 2011, 11:25 PM
#4
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)
-
Mar 10th, 2011, 07:39 AM
#5
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|