git 哈希值作为版本号_将git commit哈希和Azure DevOps内部版本号和内部版本ID添加到ASP.NET网站

git 哈希值作为版本号

git 哈希值作为版本号

image

A few months back I moved my CI/CD (Continuous Integration/Continuous Development) to Azure DevOps for free. You get 1800 build minutes a month FREE and I'm not even close to using it with three occasionally-updated sites building on it. Earlier this week I wrote about making a cleaner and more intentional azure-pipelines.yml for an ASP.NET Core Web App

几个月前,我免费将CI / CD(连续集成/连续开发)迁移到Azure DevOps 。 您每月可以免费获得1800个构建分钟,并且我甚至无法将其与三个偶尔更新的站点一起使用。 本周早些时候,我写了一篇关于为ASP.NET Core Web App制作更简洁,更有目的的azure-pipelines.yml的文章。

I was working/pairing with Damian today because I wanted to get my git commit hashes and build ids embedded into the actual website so I could see exactly what commit is in production.

我今天与Damian合作/配对是因为我想获取git commit哈希并将构建的id嵌入到实际网站中,以便我可以确切地看到生产中的提交

That's live on hanselminutes.com righ tnow and looks like this

那是在hanselminutes.com上直播的,看起来像这样

© Copyright 2020, Scott Hanselman. Design by @jzy, Powered by .NET Core 3.1.2 and deployed from commit 6b48de via build 20200310.7

©版权所有2020, Scott Hanselman @jzy设计,由.NET Core 3.1.2支持,并通过build 20200310.7从commit 6b48de进行部署

There's a few things here and it's all in my ASP.NET Web App's main layout page called _layout.cshtml. You can look all about ASP.NET Core 101, .NET and C# over at https://dot.net/videos if you'd like. They've lovely videos.

这里有几件事,所有这些都在我的ASP.NET Web App的主要布局页面_layo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值