I have a project which adds a reference t开发者_JAVA技巧o a class library project. Within this class library is a file of enums. What I wanted to do is add a couple of enums to this file and then from my main project, go to Properties->Settings and add a user setting which has a type of this enum. On the Type combo box I select Browse and from there the class library project. However, only the previous enums show up in this list. They are all declared as public. I have rebuilt everything and deleted the reference and re-added it but it makes no difference.
Why are the new enums not showing up in the list?
Update: As the comment below, I have now fixed this. The solution was to close Visual Studio and reopen it. A bug in Visual Studio by the looks of things.
Update: As stated, I have now fixed this. The solution was to close Visual Studio and reopen it. A bug in Visual Studio by the looks of things.
精彩评论