Make CompilationOptions.MetadataImportOptions public.#24468
Merged
AlekseyTs merged 2 commits intodotnet:dev15.7.xfrom Jan 26, 2018
Merged
Make CompilationOptions.MetadataImportOptions public.#24468AlekseyTs merged 2 commits intodotnet:dev15.7.xfrom
AlekseyTs merged 2 commits intodotnet:dev15.7.xfrom
Conversation
Contributor
Author
|
@dotnet/roslyn-compiler Please review |
Contributor
Author
Contributor
Author
|
@dotnet/roslyn-compiler Please review |
jcouv
reviewed
Jan 26, 2018
| /// Specifies whether to import members with accessibility other than public or protected by default. | ||
| /// Default value is <see cref="MetadataImportOptions.Public"/>. The value specified is not going to | ||
| /// affect correctness of analysis performed by compilers because all members needed for correctness | ||
| /// are going to be imported regadless. This setting can force compilation to import members that it |
Member
There was a problem hiding this comment.
regadless [](start = 37, length = 9)
Typo s/regadless/regardless/
jaredpar
approved these changes
Jan 26, 2018
|
I am fairly certain this does not work with VBCSCompiler.exe, which compiles C# projects. I am creating a Roslyn Diagnostic Analyzer, below is a snippet of the relevant code. When I debug the process I can see the MetadataImportOptions value does not change when SetMetadataImportOptions is called. When I use reflection to set the MetadataImportOptions, everything works. Is this behavior expected? I am running Visual Studio 2017 version 15.7.5 and Microsoft.CodeAnalysis.CSharp.Workspaces version 2.8.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6748.