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

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

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

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

        在 C# 中使用 GitLabCI

        时间:2023-08-27
          <legend id='Yz6oQ'><style id='Yz6oQ'><dir id='Yz6oQ'><q id='Yz6oQ'></q></dir></style></legend>

        1. <tfoot id='Yz6oQ'></tfoot>
            <tbody id='Yz6oQ'></tbody>
            • <small id='Yz6oQ'></small><noframes id='Yz6oQ'>

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

                  <bdo id='Yz6oQ'></bdo><ul id='Yz6oQ'></ul>
                  本文介绍了在 C# 中使用 GitLabCI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我一直在开发 C# 应用程序,并想试用 GitLab CI.我只能看到 Ruby,找不到任何关于如何使用它构建 C# 应用程序的信息.

                  I've been working on a C# application and wanted to try the GitLab CI out. All I can see is Ruby and can't find any information on how to build a C# application using it.

                  当我运行测试设置时,我进行了提交,但我没有构建.

                  When I run the test settings, I make the commit, but I don't have my build.

                  我应该如何进行简单的构建?我可以使用哪个命令?我不介意构建失败(但构建).

                  How should I make a simple build? Which command could I use for that? I don't mind if I get a failed build (but a build).

                  推荐答案

                  我只是想分享我的 .gitlab-ci.yml 完整的单元测试.您将不得不调整您的 nuget 和可能的其他路径.这适用于同名解决方案中的单个项目.

                  I just wanted to share my .gitlab-ci.yml complete with unit testing. You will have to adjust your nuget and possibly other paths. This is for a single project in a solution of the same name.

                  variables:
                    PROJECT_NAME: "ProjectNameGoesHere"
                  before_script:
                    - echo "starting build for %PROJECT_NAME%"
                    - echo "Restoring NuGet Packages..."
                    - d:	ools
                  uget restore "%PROJECT_NAME%.sln"
                  stages:
                    - build
                    - test
                  build:
                    stage: build
                    script:
                    - echo "Release build..."
                    - '"C:WindowsMicrosoft.NETFramework64v4.0.30319msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "%PROJECT_NAME%.sln"'
                    artifacts:
                      untracked: true
                  test:
                    stage: test
                    script:
                    - echo "starting tests"
                    - cd %PROJECT_NAME%Tests/bin/Release
                    - '"C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEMSTest.exe" /testcontainer:%PROJECT_NAME%Tests.dll'
                    dependencies:
                    - build
                  

                  这篇关于在 C# 中使用 GitLabCI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 BouncyCastle 验证 ECDSA 签名 下一篇:将 Azure 管道与 Gitlab 集成(持续集成)

                  相关文章

                  最新文章

                  <i id='Fi2oE'><tr id='Fi2oE'><dt id='Fi2oE'><q id='Fi2oE'><span id='Fi2oE'><b id='Fi2oE'><form id='Fi2oE'><ins id='Fi2oE'></ins><ul id='Fi2oE'></ul><sub id='Fi2oE'></sub></form><legend id='Fi2oE'></legend><bdo id='Fi2oE'><pre id='Fi2oE'><center id='Fi2oE'></center></pre></bdo></b><th id='Fi2oE'></th></span></q></dt></tr></i><div id='Fi2oE'><tfoot id='Fi2oE'></tfoot><dl id='Fi2oE'><fieldset id='Fi2oE'></fieldset></dl></div>
                  • <bdo id='Fi2oE'></bdo><ul id='Fi2oE'></ul>
                  1. <legend id='Fi2oE'><style id='Fi2oE'><dir id='Fi2oE'><q id='Fi2oE'></q></dir></style></legend>
                  2. <small id='Fi2oE'></small><noframes id='Fi2oE'>

                    <tfoot id='Fi2oE'></tfoot>