Björn Hellander

Results 17 comments of Björn Hellander

I tried the same with both MSTest and NUnit just now and got the same behaviour, so it feels unlikely that this is "on you". I reported it as Visual...

I managed to get a test case for this running after upgrading the Roslyn version in the test project. I included some 8.0 specific syntax, to make sure the first...

I created a test case and the variable is reported as "WrittenInside" (instead of "ReadInside") by the data flow analysis. Looks like a Roslyn bug: https://github.com/dotnet/roslyn/issues/60402

Seems like a Roslyn bug to me, but I am not really sure. Filed [this](https://github.com/dotnet/roslyn/issues/62728) to get their opinion.

Since this is not specific to xunit, I would suggest using an existing analyzer package. This would give you the same benefit in production code as well. I am pretty...

Ok. I just thought it would be a waste of time to re-implement something that already exists, but I see your point.

@bradwilson The issue was with methods returning `Task` (your methods return `void`), but I tried changing versions back and forth in another project now and it seems to have been...

@lscpike Is your problem gone as well with a newer version? If not, maybe you should create a separate issue.

I have the same experience. For example in this repo: https://github.com/DotNetAnalyzers/StyleCopAnalyzers Latest versions of Visual Studio and FCC. Unclear if it stopped working after a VS update, FCC update, etc....

@tonyhallett Ok. I checked before commenting and it is only installed in 2022, but good to know 👍 IncludeReferencedProjects = true seems very reasonable. :-) I will try later today,...