nant

CI/CD是什么?

好久不见. 提交于 2020-12-18 01:29:08
CI/CD 是一种通过在应用开发阶段引入自动化来频繁向客户交付应用的方法。CI/CD 的核心概念是持续集成、持续交付和持续部署。作为一个面向开发和运营团队的解决方案,CI/CD 主要针对在集成新代码时所引发的问题(亦称:“集成地狱”)。 具体而言,CI/CD 可让持续自动化和持续监控贯穿于应用的整个生命周期(从集成和测试阶段,到交付和部署)。这些关联的事务通常被统称为“CI/CD 管道”,由开发和运维团队以敏捷方式协同支持。 CI 是什么?CI 和 CD 有什么区别? 缩略词 CI / CD 具有几个不同的含义。CI/CD 中的“CI”始终指持续集成,它属于开发人员的自动化流程。成功的 CI 意味着应用代码的新更改会定期构建、测试并合并到共享存储库中。该解决方案可以解决在一次开发中有太多应用分支,从而导致相互冲突的问题。 CI/CD 中的“CD”指的是持续交付和/或持续部署,这些相关概念有时会交叉使用。两者都事关管道后续阶段的自动化,但它们有时也会单独使用,用于说明自动化程度。 持续 交付 通常是指开发人员对应用的更改会自动进行错误测试并上传到存储库(如 GitHub 或容器注册表),然后由运维团队将其部署到实时生产环境中。这旨在解决开发和运维团队之间可见性及沟通较差的问题。因此,持续交付的目的就是确保尽可能减少部署新代码时所需的工作量。 持续 部署 (另一种“CD”

在.NET中将HTML转换为PDF

雨燕双飞 提交于 2020-02-26 11:45:57
我想通过将HTML内容传递给函数来生成PDF。 我已经为此使用了iTextSharp,但是当它遇到表格并且布局变得凌乱时,它的表现不佳。 有没有更好的办法? #1楼 尝试使用此 PDF Duo .Net 转换组件,可将 HTML从ASP.NET 应用程序转换 为PDF, 而无需使用其他dll。 您可以传递HTML字符串或文件,或流以生成PDF。 使用下面的代码(示例C#): string file_html = @"K:\hdoc.html"; string file_pdf = @"K:\new.pdf"; try { DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf(); conv.OpenHTML(file_html); conv.SavePDF(file_pdf); textBox4.Text = "C# Example: Converting succeeded"; } 您可以在以下位置找到Info + C#/ VB示例: http : //www.duodimension.com/html_pdf_asp.net/component_html_pdf.aspx #2楼 好的,使用这项技术。 飞碟项目 IKVM 存根 o src可以从 这里 下载,需要 nant #3楼 更新: 现在我推荐在

Can I parameterize a CruiseControl.NET project configuration such that the parameters are exposed by the web interface?

六眼飞鱼酱① 提交于 2020-02-05 03:26:06
问题 I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of my software development. Currently, NAnt handles just about everything, including replacing environment specific settings (e.g., database connection strings) based on an input target that I specify on the command line. CruiseControl.NET is used to build the application for the default environment (dev) anytime new code is committed. I also want CruiseControl.NET to invoke a build for my additional

NAnt: parallel threads for execution of tasks; does this exist?

╄→尐↘猪︶ㄣ 提交于 2020-01-14 13:56:48
问题 I am looking an ability to execute <tasks> on separate threads, with the ability to join those separate threads after execution is done... does such a thing exist within any version of NAnt? 回答1: From the comments: Parallel task execution on NAnt links to http://jayflowers.com/WordPress/?p=101 ... and answering in a comment is bad form. See https://meta.stackexchange.com/questions/131515/many-questions-answered-via-comment-instead-of-answer#comment362688_131515 来源: https://stackoverflow.com

Dealing with passwords in NAnt build script

房东的猫 提交于 2020-01-13 08:57:12
问题 Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don't want to put the password into the build script. 回答1: I'm using a script for now, but I'd love to hear if there's a prebuilt method already available. Many thanks to sundar for the ForegroundColor trick. I'm not sure if it matters whether you use Project.Log or go direct to Console.WriteLine(), any NAnt ninjas want to educate me? Here's the script and a sample target

Building Flex projects in ant/nant

不问归期 提交于 2020-01-12 17:35:27
问题 We have a recurring problem at my company with build breaks in our Flex projects. The problem primarily occurs because the build that the developers do on their local machines is fundamentally different from the build that occurs on the build machine. The devs are building the projects using FlexBuilder/eclipse and the build machine is using the command line compilers. Inevitably, the {projectname}-config.xml and/or the batch file that runs the build get out of sync with the project files

NAnt: Check if include file was already included

雨燕双飞 提交于 2020-01-06 19:52:24
问题 Does anybody know a way to check if a file was already included? <include buildfile="${script.dir}\util.include.nant" /> . . . . <include buildfile="${script.dir}\util.include.nant" /> This will throw an exception that a target was duplicated. Is there a way around? Thanks in advance 回答1: Just saw this question which seems related and decided to change the case of one of the duplicate includes in a.build in my other answer to: <include buildfile="c.build" /> <include buildfile="C.build" />