当前位置: 首页 > news >正文

C# 警告 warning MSB3884: 无法找到规则集文件“MinimumRecommendedRules.ruleset”

警告 warning MSB3884: 无法找到规则集文件“MinimumRecommendedRules.ruleset”在这里插入图片描述

C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: 无法找到规则集文件“MinimumRecommendedRules.ruleset”。

原因:

1.无法找到规则集文件
2.项目工程警告

解决方案:删除项目文件中的对应引用

删除对应引用

<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSetDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
<CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisRuleDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><PropertyGroup><Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration><Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform><ProductVersion>8.0.30703</ProductVersion><SchemaVersion>2.0</SchemaVersion><ProjectGuid>{BF7DB2E4-0FD0-4B2C-8E8E-5D05BA78F311}</ProjectGuid><OutputType>Library</OutputType><AppDesignerFolder>Properties</AppDesignerFolder><RootNamespace>cvCore</RootNamespace><AssemblyName>cvCore</AssemblyName><TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion><FileAlignment>512</FileAlignment><SccProjectName></SccProjectName><SccLocalPath></SccLocalPath><SccAuxPath></SccAuxPath><SccProvider></SccProvider><TargetFrameworkProfile /></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols><DebugType>full</DebugType><Optimize>false</Optimize><OutputPath>bin\Debug\</OutputPath><DefineConstants>DEBUG;TRACE</DefineConstants><ErrorReport>prompt</ErrorReport><WarningLevel>4</WarningLevel><Prefer32Bit>false</Prefer32Bit></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "><DebugType>pdbonly</DebugType><Optimize>true</Optimize><OutputPath>bin\Release\</OutputPath><DefineConstants>TRACE</DefineConstants><ErrorReport>prompt</ErrorReport><WarningLevel>4</WarningLevel><PlatformTarget>x86</PlatformTarget><Prefer32Bit>false</Prefer32Bit></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"><DebugSymbols>true</DebugSymbols><OutputPath>..\Bin\Debug\</OutputPath><DefineConstants>DEBUG;TRACE</DefineConstants><DebugType>full</DebugType><PlatformTarget>x86</PlatformTarget><CodeAnalysisLogFile>bin\Debug\cvCore.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile><CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression><CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile><ErrorReport>prompt</ErrorReport><CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet><CodeAnalysisRuleSetDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories><CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets><CodeAnalysisRuleDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories><CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules><Prefer32Bit>false</Prefer32Bit></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"><OutputPath>..\Bin\Release\</OutputPath><DefineConstants>TRACE</DefineConstants><Optimize>true</Optimize><DebugType>pdbonly</DebugType><PlatformTarget>x86</PlatformTarget><CodeAnalysisLogFile>bin\Release\cvCore.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile><CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression><CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile><ErrorReport>prompt</ErrorReport><CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet><CodeAnalysisRuleSetDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories><CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets><CodeAnalysisRuleDirectories>;D:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories><CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules><Prefer32Bit>false</Prefer32Bit></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"><DebugSymbols>true</DebugSymbols><OutputPath>..\Bin\Debug\</OutputPath><DefineConstants>DEBUG;TRACE</DefineConstants><DebugType>full</DebugType><PlatformTarget>x64</PlatformTarget><LangVersion>7.3</LangVersion><ErrorReport>prompt</ErrorReport><Prefer32Bit>false</Prefer32Bit></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"><OutputPath>bin\x64\Release\</OutputPath><DefineConstants>TRACE</DefineConstants><Optimize>true</Optimize><DebugType>pdbonly</DebugType><PlatformTarget>x64</PlatformTarget><LangVersion>7.3</LangVersion><ErrorReport>prompt</ErrorReport><Prefer32Bit>false</Prefer32Bit></PropertyGroup><ItemGroup><Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"><HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath></Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Drawing" /><Reference Include="System.Windows.Forms" /><Reference Include="System.Windows.Forms.DataVisualization" /><Reference Include="System.Xml.Linq" /><Reference Include="System.Data.DataSetExtensions" /><Reference Include="Microsoft.CSharp" /><Reference Include="System.Data" /><Reference Include="System.Xml" /></ItemGroup><ItemGroup><Compile Include="AppInstance.cs" /><Compile Include="ComBoxItem\ComBoxItem.cs" /><Compile Include="Conference\Conference.cs" /><Compile Include="Conference\ConferenceInfo.cs" /><Compile Include="Conference\ConferenceManager.cs" /><Compile Include="Conference\ConfPersonelManager.cs" /><Compile Include="Conference\FlowBaseManager.cs" /><Compile Include="FileTool.cs" /><Compile Include="Flow\VoteNameResult.cs" /><Compile Include="Sign\SeatOrder.cs" /><Compile Include="Sign\SeatOrderManger.cs" /><Compile Include="Sign\SignExcelResult.cs" /><Compile Include="Sign\SignResultManage.cs" /><Compile Include="FileCreateClass.cs" /><Compile Include="Flow\Flow.cs" /><Compile Include="Flow\FlowManager.cs" /><Compile Include="Motion\LabelContent.cs" /><Compile Include="Motion\Motion.cs" /><Compile Include="Motion\MotionResult.cs" /><Compile Include="Motion\VoteResult.cs" /><Compile Include="Personnel\MeetingPersonnel.cs" /><Compile Include="SubView\ChartShowCtl.cs"><SubType>UserControl</SubType></Compile><Compile Include="SubView\ChartShowCtl.Designer.cs"><DependentUpon>ChartShowCtl.cs</DependentUpon></Compile><Compile Include="SubView\ControlHelper.cs" /><Compile Include="SubView\ResultSubView.cs" /><Compile Include="Personnel\PersonnelClass.cs" /><Compile Include="Personnel\PersonnelManager.cs" /><Compile Include="Properties\AssemblyInfo.cs" /><Compile Include="SubView\ShowFlowBigView.cs" /><Compile Include="SubView\ShowSignSubView.cs" /><Compile Include="SubView\ShowFlowSubView.cs" /><Compile Include="SubView\ShowVoteSubView.cs" /><Compile Include="Template\TempBase\BackGroundParam.cs" /><Compile Include="Template\TempBase\FlowParam.cs" /><Compile Include="Template\TempBase\PassParam.cs" /><Compile Include="Template\TempBase\RemindContent.cs" /><Compile Include="Template\TempBase\MotionBase.cs" /><Compile Include="Template\TempBase\ResultLabelParam.cs" /><Compile Include="Template\TempBase\TempBaseMeneger.cs" /><Compile Include="Template\TempEvalu3S1.cs" /><Compile Include="Template\TempEvalu2S1.cs" /><Compile Include="Template\TemplateManager.cs" /><Compile Include="Template\TempSelfDefine.cs" /><Compile Include="Template\TempSign.cs" /><Compile Include="Template\TempVote.cs" /><Compile Include="Template\TempVote2S1.cs" /><Compile Include="Template\TempVote3S1.cs" /><Compile Include="Template\TempBase\TimeParam.cs" /></ItemGroup><ItemGroup><ProjectReference Include="..\cvBase\cvBase.csproj"><Project>{A9C40C28-EC9F-481A-B2C5-F13996E3EFB5}</Project><Name>cvBase</Name></ProjectReference><ProjectReference Include="..\cvComm\cvComm.csproj"><Project>{18B3400C-E74F-415D-9382-0E5681601DA8}</Project><Name>cvComm</Name></ProjectReference><ProjectReference Include="..\MultiLanguageLibrary\MultiLanguageLibrary.csproj"><Project>{A9927434-F623-4730-B425-3619C350AF18}</Project><Name>MultiLanguageLibrary</Name></ProjectReference></ItemGroup><ItemGroup><Folder Include="Contorl\" /></ItemGroup><ItemGroup><EmbeddedResource Include="SubView\ChartShowCtl.resx"><DependentUpon>ChartShowCtl.cs</DependentUpon></EmbeddedResource></ItemGroup><ItemGroup><None Include="app.config" /><None Include="packages.config" /></ItemGroup><Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets.<Target Name="BeforeBuild"></Target><Target Name="AfterBuild"></Target>-->
</Project>
http://www.lryc.cn/news/389685.html

相关文章:

  • Lua网站开发之文件表单上传
  • 千益畅行,旅游卡,如何赚钱?
  • Element-plus点击当前行之后获取数据显示跟随行数据
  • Docker与微服务实战2022 尚
  • Spring @Cacheable缓存注解用法说明
  • Redis如何实现主从复制
  • 正则表达式以及文本三剑客grep、sed、awk
  • HSRP热备份路由协议(VRRP虚拟路由冗余协议)配置以及实现负载均衡
  • 不同集成学习算法的比较:随机森林、AdaBoost、XGBoost、LightGBM
  • 【聊聊原子性,中断,以及nodejs中的具体示例】
  • 常见网络端口号
  • 【数值计算库-超长笔记】Python-Mpmath库:高精度数值计算
  • 昇思25天学习打卡营第6天|函数式自动微分
  • 作业7.2
  • PCL 点云聚类(基于体素连通性)
  • python自动化运维--DNS处理模块dnspython
  • 成人职场商务英语学习柯桥外语学校|邮件中的“备注”用英语怎么说?
  • AndroidStudio报错macMissing essential plugin
  • doris集群物理部署保姆级教程
  • 探囊取物之多形式登录页面(基于BootStrap4)
  • 【ONLYOFFICE】| 桌面编辑器从0-1使用初体验
  • 20、PHP字符串的排列(含源码)
  • Linux 标准IO的fopen和fclose
  • 一个计算密集小程序在不同CPU下的表现
  • 圈子系统搭建教程,以及圈子系统的功能特点,圈子系统,允许二开,免费源码,APP小程序H5
  • 递归算法练习
  • WebDriver 类的常用属性和方法
  • 基于x86+FPGA+AI轴承缺陷视觉检测系统,摇枕弹簧智能检测系统
  • 短剧小程序系统cps分销开发搭建
  • 代理IP的10大误区:区分事实与虚构