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.项目工程警告

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

删除对应引用

xml 复制代码
<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 复制代码
<?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>
相关推荐
余衫马2 分钟前
Rust-Trait 特征编程
开发语言·后端·rust
monkey_meng6 分钟前
【Rust中多线程同步机制】
开发语言·redis·后端·rust
Jacob程序员8 分钟前
java导出word文件(手绘)
java·开发语言·word
小白学大数据15 分钟前
正则表达式在Kotlin中的应用:提取图片链接
开发语言·python·selenium·正则表达式·kotlin
VBA633717 分钟前
VBA之Word应用第三章第三节:打开文档,并将文档分配给变量
开发语言
半盏茶香17 分钟前
【C语言】分支和循环详解(下)猜数字游戏
c语言·开发语言·c++·算法·游戏
落落鱼201329 分钟前
tp接口 入口文件 500 错误原因
java·开发语言
镰刀出海33 分钟前
Recyclerview缓存原理
java·开发语言·缓存·recyclerview·android面试
小肥象不是小飞象34 分钟前
(六千字心得笔记)零基础C语言入门第八课——函数(上)
c语言·开发语言·笔记·1024程序员节
懒大王爱吃狼1 小时前
Python教程:python枚举类定义和使用
开发语言·前端·javascript·python·python基础·python编程·python书籍