欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > C# 警告 warning MSB3884: 无法找到规则集文件“MinimumRecommendedRules.ruleset”

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

2024/11/30 12:40:23 来源:https://blog.csdn.net/weixin_45875105/article/details/140046252  浏览:    关键词: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>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com