You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turned on code analyzer in visual studio for C# project : Microsoft.CodeAnalysis.FxCopAnalyzers 2.9.6
Turned off Binary analyzers.
Expected behavior
Works fine in VS2019.
Encounters errors on TFS 2017 build server. What version of TFS is required for Microsoft.CodeAnalysis.FxCopAnalyzers support?
Actual behavior
TFS Build error
CSC (0, 0)
CSC(0,0): Warning CS8032: An instance of analyzer Microsoft.CodeQuality.Analyzers.QualityGuidelines.AvoidDuplicateElementInitialization cannot be created from C:\TFS2017BuildAgent_work\232\s\packages\Microsoft.CodeQuality.Analyzers.2.9.6\analyzers\dotnet\cs\Microsoft.CodeQuality.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
The text was updated successfully, but these errors were encountered:
Analyzer package
Microsoft.CodeAnalysis.FxCopAnalyzers
Package Version
v2.9.6
Repro steps
Turned on code analyzer in visual studio for C# project : Microsoft.CodeAnalysis.FxCopAnalyzers 2.9.6
Turned off Binary analyzers.
Expected behavior
Works fine in VS2019.
Encounters errors on TFS 2017 build server. What version of TFS is required for Microsoft.CodeAnalysis.FxCopAnalyzers support?
Actual behavior
TFS Build error
CSC (0, 0)
CSC(0,0): Warning CS8032: An instance of analyzer Microsoft.CodeQuality.Analyzers.QualityGuidelines.AvoidDuplicateElementInitialization cannot be created from C:\TFS2017BuildAgent_work\232\s\packages\Microsoft.CodeQuality.Analyzers.2.9.6\analyzers\dotnet\cs\Microsoft.CodeQuality.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
The text was updated successfully, but these errors were encountered: