Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IFluentInterface no longer appears to work in recent versions of Visual Studio (e. g. 15.5.2) #5

Open
stakx opened this issue Dec 27, 2017 · 1 comment

Comments

@stakx
Copy link

stakx commented Dec 27, 2017

TL;DR: This is likely caused by a Roslyn bug; see dotnet/roslyn#4434.


I've noticed for a while now that letting an interface inherit from IFluentInterface no longer appears to result in System.Object members being hidden in IntelliSense in recent versions of Visual Studio.

For example, here's a screenshot of a solution in Visual Studio Community 2017 (version 15.5.2) using Moq (which gets imported in the standard fashion, i. e. as a NuGet package):

ifluentinterface-code

My IntelliSense options are as follows:

ifluentinterface-options

Visual Studio's support for [EditorBrowsable] isn't generally broken—other members are still properly hidden, e. g.:

  • Moq.Mock.Expect (method marked with EditorBrowsableState.Never)
  • Moq.Internals.InterfaceProxy (type marked with EditorBrowsableState.Never)
  • Moq.LookupOrFallbackDefaultValueProvider (type marked with EditorBrowsableState.Advanced)

Can you confirm that this is a problem with current versions of Visual Studio?

@stakx
Copy link
Author

stakx commented Dec 27, 2017

I can actually confirm this myself: This is most likely due to a Roslyn bug; see dotnet/roslyn#4434.

I think it might be helpful to leave this present issue open to raise awareness about the real problem, until that has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant