开发者

Types Not Updated In Properties Settings Page Of .NET C# Project

开发者 https://www.devze.com 2023-04-10 22:52 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消