-
Notifications
You must be signed in to change notification settings - Fork 27
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
Warn if types from Microsoft.VisualStudio.Shell.XX are exposed #64
Comments
At this point though, I'm not sure what the analyzer can really do. Public types will derive from MPF types in normal scenarios (like deriving from Package or AsyncPackage), which would seem to be exposing MPF types publicly. How can we get away with flagging such as a problem? microsoft#64
I'm actually thinking we should Won't Fix this. @sharwell, how can we flag when assemblies expose MPF types in their public API when it's by design that they should do so? For example, a public type will derive from |
There are two resolutions for this:
|
@sharwell Would your team mark all the relevant types internal or would you turn the rule off? |
@AArnott they are supposed to already be internal, but we'd fix any that were found. |
…st.Sdk-16.7.0 Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0
Problem statement
Types from Microsoft.VisualStudio.Shell.XX.0.dll are not subject to the normal versioning strategies in Visual Studio. Exposing them in signatures can result in compile or runtime failures in side-by-side load scenarios.
Proposed solution
An analyzer can report a diagnostic for all cases where an exposed signature depends on a type defined in one of these assemblies.
The text was updated successfully, but these errors were encountered: