CA0052 Could not identify plateform And CA0055 not targets were selected when Enable code analysis VS 2019

1.5k Views Asked by At

I'm using vs 2019 with .Net 5 and tried to run code analysis with MsBuild command, When I was using FxCorp its worked perfectly but fxcorp is deprecated I was getting below error

Warning CA0507  Post-build Code Analysis (FxCopCmd.exe) has been deprecated in favor of FxCop analyzers, which run during the build. Refer to https://aka.ms/fxcopanalyzers to migrate to FxCop analyzers.              Active

Now I changed with NetCodeAnalysis with .Net 5 (Install-Package Microsoft.CodeAnalysis.Analyzers -Version 3.3.3)

Now I'm getting CA0052 Could not identify the platform And CA0055 no targets were selected when Enable code analysis VS 2019

enter image description here Thanks,

0

There are 0 best solutions below