Hi,
We are getting compilation issue after freshly installs VS 2019 v16.10.3. The below code analysis error is not appearing in VS 2019 v16.8 or v16.9 during the compilation time. Is the CA treated as error in VS 2019 v16.10.x? If yes then share more details related to this.
error CA2004: Microsoft.Reliability : 'RefLambdaFunctionRunner<int>::RefLambdaFunctionRunner<int>(function<int __cdecl(void)>*)' contains one or more calls to GC.KeepAlive(object) that should be removed (after converting to SafeHandle to encapsulate the unmanaged resource).
Thanks,
James J