I am currently working on a big project which uses .net 4 and in a few months we'd soon be moving to .net 5. I am wondering if .net 5 compiler gives warning to the loop-variable-closure issue? Other than resharper does fxcop/.net-5-compiler give warning to this?
The reason i am asking this is because i am afraid there will be a breaking change if we move our code base to .net 5, so wondering if there is a way (compiler, fxcop etc) to tell in advance that this might be an issue. I do not have resharper thus i ruled it out (better have support in the base tools)