在我创建的dotnet core2.1控制台应用程序上,我使用Resharper inspect工具进行静态代码analysis(JetBrains.ReSharper.CommandLineTools.2018.3.1\InspectCode.exe)。在解决方案中,有一个单独的项目,它只是控制台应用程序中使用的一个包。
布局如下:

当我按如下方式运行inspectCode.exe时:
JetBrains.ReSharper.CommandLineTools.2018.3.1\InspectCode.exe "AI.DL.Backup\AI.DL.Backup.csproj" /o:"CodeInspection_20222.xml" /profile:"AI.DL.Backup.sln.DotSettings"我得到以下问题:

输出xml报告具有以下内容:
<IssueType WikiUrl="https://www.jetbrains.com/resharperplatform/help?Keyword=RedundantNameQualifier" Severity="WARNING" Description="Redundant name qualifier" CategoryId="CodeRedundancy" Category="Redundancies in Code" Id="RedundantNameQualifier"/>
<Issue Message="Qualifier is redundant" Line="5" Offset="146-154" File="AI.DL.Backup\src\AI.DL.Backup\Startup.cs" TypeId="RedundantNameQualifier"/>问题似乎是它找不到引用的dll项目,并且抛出代码分析错误(代码已经构建,所以bin/obj文件夹存在,需要相关的dll/包)。
Ling5(如所指定的)只是单独包的using语句,它不能解析,并且被认为是多余的。
using AI.DL.DocumentManagement;
using AI.DL.DocumentManagement.Stores;根据生成的XML报告,我可以看到它在单独的包中找不到名称空间。为什么会这样呢?有人见过这个吗?
发布于 2019-01-19 03:10:43
当我将"inspect.exe“重新指向我的解决方案文件而不是单个项目时,我能够解决这个问题!
https://stackoverflow.com/questions/54234149
复制相似问题