-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Make src/Analyzers tests pass successfully locally in Vs2019 #20274
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
Make src/Analyzers tests pass successfully locally in Vs2019 #20274
Conversation
…ather than "CopyToPublishDirectory"
It looks like this project is using an analyzer test framework called "Microsoft.AspNetCore.Analyzer.Testing", which so far I haven't been able to find. This is not the standard analyzer test framework, so the first step on testing is to remove this reference and instead use Microsoft.CodeAnalysis.Testing. I'm still investigating the steps necessary to do this for this repository. |
AHAH, yeah It took me time to find it too (As you know this repo is going to be moved to both EDIT : |
I cannot figure out what this is testing:
|
This test seems to be analyzing Lines 8 to 18 in c7d4d7c
The
This code ensure that it properly detect it as a
And then each and it's not supposed to find any : |
also the following line is VERY VERY confusion in the If you dig in aspnetcore/src/Analyzers/Analyzers/src/CompilationFeatureDetector.cs Lines 16 to 25 in c7d4d7c
Also i'm not very sure about the |
This comment has been minimized.
This comment has been minimized.
I submitted #20277 to update the analyzer tests to the new library. I verified that this pull request fixes the experience for the remaining tests. |
I guessed that it was on purpose to make sure the code is actually seen as code and not as string And later on the call to I guess this is now the job of |
(i changed the status of the PR to Honestly i was not sure about the changes since it implied both |
@sharwell |
This pull request seems fine to me. |
thx ;) |
Summary of the changes (Less than 80 chars)
Addresses #bugnumber (not created yet)
As i have no idea if it will break the CI or not, i did not created an issue yet