【发布时间】:2022-12-09 16:36:03
【问题描述】:
我是 SonarQube 的新手。我的目标是设置 SonarQube 来扫描具有混合内容的 .NET 解决方案——一些项目使用 C#,一个是用 TS/Angular 编写的。项目结构如下所示:
现在我正在使用 SonarScanner .NET 来分析我的项目。问题是,分析的是 C# 代码,而不是 Angular 代码。
我的 sonar-project.properties 看起来像这样(解决方案实际上在文件夹 ./src/ 中):
sonar.projectKey=it-entwicklung_dotnet_mypoettinger_AYFcAof9yGNGEq-TtfGV
sonar.qualitygate.wait=true
sonar.sourceEncoding=UTF-8
sonar.projectName=mypoettinger
sonar.sources=src/
在扫描程序过程中,我收到以下消息:
/builds/it-entwicklung/dotnet/xxx/src/xxx.App/xxx.App.esproj : warning NU1503: Skipping restore for project '/builds/it-entwicklung/dotnet/xxx/src/xxx.App/xxx.App.esproj'. The project file may be invalid or missing targets required for restore. [/builds/it-entwicklung/dotnet/xxx/src/xxx.sln]
我究竟做错了什么?
【问题讨论】:
-
xxx.App.esproj?
-
你是什么意思?对不起,我不知道你想告诉我什么。
标签: c# .net angular sonarqube sonarqube-scan