-
Notifications
You must be signed in to change notification settings - Fork 4k
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
AdditionalFiles do not show up in CompilationStartAnalysisContext.Options.AdditionalFiles #12840
Comments
Also tagging @srivatsn - does this all seem right to you? |
Ya the instructions in that doc should work. @torgabor, do you see the same behavior if you add some other item type to as well? |
Hi! I'm not sure what you mean by adding other item type. |
I've just encountered the same issue when running VS2017 15.7.1 for a .Net Standard project (using the https://github.com/dotnet/roslyn/blob/master/docs/analyzers/Using%20Additional%20Files.md example) so it still seems to be an issue :-( |
Hmm, @Pilchie any chance that's something to move to the project system for new stuff? |
@jaybarden If you:
There should be an extra output window pane that logs what the project system passes to the language service. Can you share that, and we can see if the project system is telling Roslyn about the file? |
ProjectOutputForTermsTesting.txt Analyzer1.zip |
Thanks - @jasonmalinowski in the log, I do see:
So it looks like project system is passing this through to Roslyn. |
Note however, that from this comment, I see that dotnet/project-system#2160 is still an issue. |
Closing out due to lack of feedback on this in 5+ years. |
Version Used:
Microsoft.CodeAnalysis.Analyzers version=1.1.0
others: 1.2.1
Steps to Reproduce:
This is consistently reproducible between two installations.
I've tried following the instructions on adding additional files:
https://github.com/dotnet/roslyn/blob/master/docs/analyzers/Using%20Additional%20Files.md
I'm really thinking I'm missing something here, however the whole process seems pretty straightforward.
I can send an example project if it helps.
Expected Behavior:
Included text file appears in context.Options.AdditionalFiles
Actual Behavior:
context.Options.AdditionalFiles is empty
The text was updated successfully, but these errors were encountered: