Why am I unable to select a custom Type for a setting from the same project/assembly as the settings file?

Viewed 10918

I am trying to set the type of an application setting property to a custom enum type I have defined in my assembly (call this Project A)

In the settings browser I click browse and am presented with the "Select a Type" dialog box.

And the Types defined in Project A are not seem to be available to me. Yet types are available from other projects that A has referenced.

It seems almost beyond comprehension to me that one would not be able to use Types defined in the base project, so I assume I am doing something wrong. I have tried building, cleaning, rebuilding, restarting without any luck, so what exactly am I missing?

edit: screenshot here http://tinypic.com/r/2ls8myb/7

4 Answers

I was trying the same and the solution was very simple: Build first.

I added an enum class, defined some values and then tried to replace an int-value in the Settings.settings file with my new enum, so I don't have to match the value later. The type was not found. Because I did not build yet.

After Building once the new enum type is known and can be used :)

Related