I have a Visual Studio solution that includes a project when compiling it returns the following compilation error:
CS8035 Error reading ruleset file C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Team Tools\Static Analysis Tools\Rule Sets\MinimumRecommendedRules.ruleset - Unable to load file or assembly 'System.Xml.ReaderWriter, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The assembly manifest definition does not match the assembly reference. (Excepción de HRESULT: 0x80131040)
I have no solution for this issue. I've been trying and searching in Google but I still haven't found what is happening with the project. Maybe is a framework installed problem?
Thank you in advanced for your support.
You need to (re-)install the indicated Static Analyser "rule set" for C# builds!
Right-click the C# project in the Solution Explorer window and select "Properties" from the pop-up menu. This should present a "Project Properties" interface in your code editor window.
In this, select the "Code Analysis" 'page' in the left-hand part; then, in the "Source Analyzers" section, there should be a button labelled "Install." Click this and wait a while.
You may need to do this a few times for different rule sets, as selected in the "Configure Rule Set" section, further down the "Code Analysis" page.
User contributions licensed under CC BY-SA 3.0