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>
相关推荐
极客先躯22 分钟前
中级java每日一道面试题-2024年7月3日
java·开发语言·java每日一道面试题
Song23 分钟前
C++:求梯形面积
开发语言·c++
※※冰馨※※35 分钟前
C# List、LinkedList、Dictionary性能对比
windows·c#
如影随从1 小时前
04-ArcGIS For JavaScript的可视域分析功能
开发语言·javascript·arcgis·可视域分析
XiaoCCCcCCccCcccC1 小时前
C语言实现双向链表
c语言·开发语言·链表
十年一梦实验室1 小时前
【C++】相机标定源码笔记- RGB 相机与 ToF 深度传感器校准类
开发语言·c++·笔记·数码相机·计算机视觉
Tech Synapse1 小时前
Java循环创建对象内存溢出怎么解决
java·开发语言·jvm
蜉蝣之翼❉1 小时前
c++ 简单线程池
开发语言·c++
WHYBIGDATA1 小时前
Scala中高级的函数编程
开发语言·后端·scala