• <bdo id='KxpiB'></bdo><ul id='KxpiB'></ul>
      <i id='KxpiB'><tr id='KxpiB'><dt id='KxpiB'><q id='KxpiB'><span id='KxpiB'><b id='KxpiB'><form id='KxpiB'><ins id='KxpiB'></ins><ul id='KxpiB'></ul><sub id='KxpiB'></sub></form><legend id='KxpiB'></legend><bdo id='KxpiB'><pre id='KxpiB'><center id='KxpiB'></center></pre></bdo></b><th id='KxpiB'></th></span></q></dt></tr></i><div id='KxpiB'><tfoot id='KxpiB'></tfoot><dl id='KxpiB'><fieldset id='KxpiB'></fieldset></dl></div>

        <tfoot id='KxpiB'></tfoot>
      1. <legend id='KxpiB'><style id='KxpiB'><dir id='KxpiB'><q id='KxpiB'></q></dir></style></legend>

        <small id='KxpiB'></small><noframes id='KxpiB'>

        带有 VSTS 的 SonarCloud 有错误 Duplicate ProjectGuid: &quot;00

        时间:2023-10-24
          <tbody id='TiPkd'></tbody>

          • <i id='TiPkd'><tr id='TiPkd'><dt id='TiPkd'><q id='TiPkd'><span id='TiPkd'><b id='TiPkd'><form id='TiPkd'><ins id='TiPkd'></ins><ul id='TiPkd'></ul><sub id='TiPkd'></sub></form><legend id='TiPkd'></legend><bdo id='TiPkd'><pre id='TiPkd'><center id='TiPkd'></center></pre></bdo></b><th id='TiPkd'></th></span></q></dt></tr></i><div id='TiPkd'><tfoot id='TiPkd'></tfoot><dl id='TiPkd'><fieldset id='TiPkd'></fieldset></dl></div>

            <legend id='TiPkd'><style id='TiPkd'><dir id='TiPkd'><q id='TiPkd'></q></dir></style></legend>

            1. <tfoot id='TiPkd'></tfoot>

              <small id='TiPkd'></small><noframes id='TiPkd'>

                <bdo id='TiPkd'></bdo><ul id='TiPkd'></ul>

                  本文介绍了带有 VSTS 的 SonarCloud 有错误 Duplicate ProjectGuid: &quot;00000000-0000-0000-0000-000000000000&quot;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们将 SonarCloud 添加到大型解决方案的构建管道中.我们的解决方案中只分析了一个项目,但我们看到了这个警告

                  We added SonarCloud to the build pipeline of a large solution. Only one project in our solution is analyzed but we see this warning

                  警告:以下项目没有有效的 ProjectGuid,并且不是使用有效的解决方案 (.sln) 构建的,因此将从分析中跳过...
                  D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj, D:a1sMyAppMyApp.CoreMyApp.Core.csproj, D:a1sMyAppMyApp.Mobile.BackendMyApp.Mobile.Backend.csproj, D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj, D:a1sMyAppMyApp.CoreMyApp.Core.csproj, D:a1sMyAppMyApp.WebMyApp.Web.csproj
                  警告:重复的 ProjectGuid:00000000-0000-0000-0000-000000000000".SonarQube 不会分析该项目.项目文件:D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj"
                  警告:重复的 ProjectGuid:00000000-0000-0000-0000-000000000000".SonarQube 不会分析该项目.项目文件:D:a1sMyAppMyApp.CoreMyApp.Core.csproj"
                  警告:重复的 ProjectGuid:00000000-0000-0000-0000-000000000000".SonarQube 不会分析该项目.项目文件:D:a1sMyAppMyApp.Mobile.BackendMyApp.Mobile.Backend.csproj"
                  警告:重复的 ProjectGuid:00000000-0000-0000-0000-000000000000".SonarQube 不会分析该项目.项目文件:D:a1sMyAppMyApp.WebMyApp.Web.csproj"

                  WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis...
                  D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj, D:a1sMyAppMyApp.CoreMyApp.Core.csproj, D:a1sMyAppMyApp.Mobile.BackendMyApp.Mobile.Backend.csproj, D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj, D:a1sMyAppMyApp.CoreMyApp.Core.csproj, D:a1sMyAppMyApp.WebMyApp.Web.csproj
                  WARNING: Duplicate ProjectGuid: "00000000-0000-0000-0000-000000000000". The project will not be analyzed by SonarQube. Project file: "D:a1sMyAppMyApp.EntitiesMyApp.Entities.csproj"
                  WARNING: Duplicate ProjectGuid: "00000000-0000-0000-0000-000000000000". The project will not be analyzed by SonarQube. Project file: "D:a1sMyAppMyApp.CoreMyApp.Core.csproj"
                  WARNING: Duplicate ProjectGuid: "00000000-0000-0000-0000-000000000000". The project will not be analyzed by SonarQube. Project file: "D:a1sMyAppMyApp.Mobile.BackendMyApp.Mobile.Backend.csproj"
                  WARNING: Duplicate ProjectGuid: "00000000-0000-0000-0000-000000000000". The project will not be analyzed by SonarQube. Project file: "D:a1sMyAppMyApp.WebMyApp.Web.csproj"

                  项目结构是

                  推荐答案

                    <PropertyGroup>
                      <TargetFramework>netstandard2.0</TargetFramework>
                       <ProjectGuid>{fc2f0da6-ddfe-67b2-8dae-eb292f55436f}</ProjectGuid>
                    </PropertyGroup>

                  您需要执行以下操作:-->为您的文件添加标签或标签ProjectGuid",扩展名为 .csproj,每个文件都有不同的 Guid.

                  You need to do the following: --> Add tag or label 'ProjectGuid ' to your files with .csproj extension with a different Guid for each file.

                  查看代码(此代码不可执行)

                  VIEW CODE (this code is not executable)

                  -->对于生成 Guid,您可以从https://www.guidgenerator.com/online-guid-generator.aspx

                  --> And for generate Guid, you can do it from https://www.guidgenerator.com/online-guid-generator.aspx

                  这篇关于带有 VSTS 的 SonarCloud 有错误 Duplicate ProjectGuid: &quot;00000000-0000-0000-0000-000000000000&quot;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SonarQube MSBuild 无法排除文件 下一篇:sonarqube 中的 C# 项目

                  相关文章

                1. <tfoot id='CmoUa'></tfoot>
                  1. <legend id='CmoUa'><style id='CmoUa'><dir id='CmoUa'><q id='CmoUa'></q></dir></style></legend>

                      <bdo id='CmoUa'></bdo><ul id='CmoUa'></ul>
                    1. <i id='CmoUa'><tr id='CmoUa'><dt id='CmoUa'><q id='CmoUa'><span id='CmoUa'><b id='CmoUa'><form id='CmoUa'><ins id='CmoUa'></ins><ul id='CmoUa'></ul><sub id='CmoUa'></sub></form><legend id='CmoUa'></legend><bdo id='CmoUa'><pre id='CmoUa'><center id='CmoUa'></center></pre></bdo></b><th id='CmoUa'></th></span></q></dt></tr></i><div id='CmoUa'><tfoot id='CmoUa'></tfoot><dl id='CmoUa'><fieldset id='CmoUa'></fieldset></dl></div>

                      <small id='CmoUa'></small><noframes id='CmoUa'>