<?xml version="1.0" encoding="utf-16"?><rss version="2.0"><channel><title>HueiFeng</title><description>冯辉,HueiFeng,.NET,.NET Core,Docker,k8s</description><link>https://hueifeng.azurewebsites.net/</link><pubDate>Tue, 07 Apr 2026 20:03:02 GMT</pubDate><copyright>(c) {year} Moonglade</copyright><generator>Moonglade v11.2-preview</generator><item><title>【Azure DevOps系列】Azure DevOps构建.NET EFCore应用程序</title><link>https://hueifeng.azurewebsites.net/post/2021/5/30/azure-devopsazure-devopsnet-efcore</link><description>本章我们将看到如何通过Azure DevOps使用EFCore CLI工具将我们的EFCore应用程序进行数据库重建，当然这种操作我不建议使用，建议使用CLI生成sql脚本形式进行发布并迁移。
设置代理服务器sdk
- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '3.x'
安装dotnet-ef
安装Entity Framework Core CLI工具，用于后面对数据库的操作
- task: CmdLine@2
  displayName: 'install dotnet-ef'
  inputs:
    script: 'dotnet tool install -g dotnet-ef'
删除数据库
 dotnet ef database drop --project &lt;path to your …</description><author>695979933@qq.com</author><category>.NET</category><category>.NET5</category><category>ASP.NET CORE</category><category>Azure</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">6B08EC4E-24A5-4BB3-ADF7-F8D07619F5C1</guid><pubDate>Sun, 30 May 2021 04:46:38 GMT</pubDate></item><item><title>在ASP.NET Core中使用ViewComponent</title><link>https://hueifeng.azurewebsites.net/post/2021/4/10/using-viewcomponents-in-asp-net-core</link><description>前言
在之前的开发过程中，我们对于应用或者说使用一些小的组件，通常使用分布页（partial view），再往前在Web Form中我们会进行应用WEB Control，好吧提及一个关键性代码TagPrefix：TagName，通过这种的标记我们便可以在我们web form中进行引入我们的组件，当然自从.NET MVC之后呢，就已经没有了WebControl，而对于.NET Core后，又多了一个特性ViewComponent。
对于ViewComponent看起来它类似于小的控制器，而对于我们小的组件或者小部分通用型功能，可通过ViewComponent进行实现，比如说留言栏、菜单等等。
ViewComponent是由两部分组成，一部分是类（通常该类集成与ViewComponent），而另外一部分是视图（Razor和普通的View一样），当然ViewComponent同样也支持POCO， …</description><author>695979933@qq.com</author><category>ASP.NET MVC</category><category>.NET</category><category>ASP.NET CORE MVC</category><category>.NET5</category><category>ASP.NET CORE</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">A4118DBF-0C7B-4658-9017-F8498E038D60</guid><pubDate>Sat, 10 Apr 2021 03:40:30 GMT</pubDate></item><item><title>.NET探索模型路由约定实现伪静态</title><link>https://hueifeng.azurewebsites.net/post/2021/2/19/dotnet-implement-url-rewrite</link><description>概述
IPageRouteModelConvention接口用于自定义PageRouteModel，这个对象在Microsoft.AspNetCore.Mvc.ApplicationModels命名空间中，
代表着Razor Page路由设置，换句话说我们可以通过实现该接口覆盖默认的实现。
该接口需要实现一个成员void Apply(PageRouteModel model)。通过这个方法，我们可以访问有关当前路由设置的元数据，并根据需要对其内容进行修改。
下面示例，将解决提供一个伪静态的解决方案，因此我们可以通过index.html about.html....去访问我们的页面，也就是说我们可以从Index-Index.html的支持
    public class HtmlExtensionPageRouteModelConvention : …</description><author>695979933@qq.com</author><category>.NET</category><category>.NET5</category><category>ASP.NET CORE</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">7946ECA2-A86C-4CE0-AB9E-0FCC73CBDFA6</guid><pubDate>Fri, 19 Feb 2021 10:49:28 GMT</pubDate></item><item><title>.NET必知的EventCounters性能指标监视器</title><link>https://hueifeng.azurewebsites.net/post/2020/11/14/dotnetnet-eventcounters-performance-monitor</link><description>在.NET我们对于性能指标监控，其实常见的有两个方法，一个是CLI工具dotnet-counters而另一个是代码级别的EventListener.
使用dotnet-counters
dotnet-counters是一个性能指标监视工具，用于临时运行状态监视和初级性能调查。它可以观察通过 EventCounter API发布的性能计数器值。例如，可以快速监视 CPU 使用情况或 .NET Core 应用程序中引发的异常率，以了解在使用 PerfView 或 dotnet-trace 深入调查更严重的性能问题之前是否有任何可疑操作。
-- 摘自 dotnet-counters
命令
dotnet-counters collect
dotnet-counters list
dotnet-counters monitor
dotnet-counters ps
安装dotnet- …</description><author>695979933@qq.com</author><category>.NET</category><category>.NET5</category><category>ASP.NET CORE</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">58CB71A2-CEB8-4440-9E9E-07402CB850AF</guid><pubDate>Sat, 14 Nov 2020 03:03:26 GMT</pubDate></item><item><title>【Azure DevOps系列】Azure DevOps构建并发布.NET5应用程序</title><link>https://hueifeng.azurewebsites.net/post/2020/9/24/azure-devopsazure-devopsnet5</link><description>Azure App Service
独立部署
在Azure App Service中我们可以通过独立部署进行部署我们的.NET5应用程序，因为它不会依赖目标系统上的环境，并且所有组件（包括librarys和运行时）都与该应用程序一起使用，并且与其他应用程序进行隔离，这样其实我们更好的去控制应用程序运行的版本。
1、选择要发布的项目，鼠标右键单击项目，然后选择发布，会出现如下内容:
file
2、接下来我们可以选择Linux应用服务或Windows应用服务
file
3、最后我们点击完成后选择部署模式此处选择独立模式
file
接下来我们发布应用程序即可
框架依赖
目前在Azure App Service中并没有为我们提供默认的.net5运行时环境，那么我们如何以框架依赖的形式使用.net5呢？看如下步骤
1、点击左侧的扩展
file
2、选择.NET5运行时，如下图所示
file
这样我们 …</description><author>695979933@qq.com</author><category>.NET5</category><category>DevOps</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">BC9BC236-E12C-4543-9A4D-EED64487CD3A</guid><pubDate>Thu, 24 Sep 2020 14:44:54 GMT</pubDate></item><item><title>【翻译】.NET 5 Release Candidate 1中的ASP.NET Core更新</title><link>https://hueifeng.azurewebsites.net/post/2020/9/15/asp-net-core-updates-in-net-5-release-candidate-1</link><description>.NET 5 Release Candidate(RC1)版本现在可以进行使用了，以下是发布的新功能：
Blazor WebAssembly性能改进
Blazor组件虚拟化
Blazor WebAssembly预渲染
Blazor WebAssembly的浏览器兼容性分析器
Blazor JavaScript隔离和对象引用
Blazor文件输入支持
Blazor中的自定义验证类属性
Blazor对ontogle事件的支持
模型绑定DateTime为UTC
控制Startup类的激活
ASP.NET Core API项目中的默认开放式API规范（Swagger）
ASP.NET Core API项目提供更好的F5体验
SignalR并行集线器调用
在SignalR Java客户端中添加了对Messagepack支持
Kestrel终端可进行特定的选项配置
Get started
如果要在. …</description><author>695979933@qq.com</author><category>.NET5</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">208C8E8E-24B3-4068-B4AE-2346FB2FF327</guid><pubDate>Tue, 15 Sep 2020 10:47:43 GMT</pubDate></item><item><title>【翻译】.NET 5 RC1发布</title><link>https://hueifeng.azurewebsites.net/post/2020/9/15/announcing-net-5-0-rc-1</link><description>9月14日，.NET5发布了(Release Candidate)RC1版本，RC的意思是指我们可以进行使用，并且RC版本得到了支持，该版本很接近.NET5.0的最终版本，也是11月正式版本之前两个RC版本中的其中一个。目前，开发团队正在寻找在.NET5发布之前剩余的bug，当然他们也希望我们的反馈以帮助他们顺利的完成.NET5的开发计划。
开发团队在今天还发布了ASP.NET Core和EF Core的RC1版本。
现在我们可以进行下载用于Windows、macOS和Linux的.NET5
Installers and binaries
Container images
Snap installer
Release notes
Known issues
GitHub issue tracker
如果要使用.NET5，我们需要使用最新的Visual Studio预览版(包括Visual …</description><author>695979933@qq.com</author><category>.NET5</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">9F66696E-FA52-4663-8329-F45D66B74A95</guid><pubDate>Tue, 15 Sep 2020 07:04:56 GMT</pubDate></item><item><title>【翻译】.NET 5 Preview8发布</title><link>https://hueifeng.azurewebsites.net/post/2020/8/26/net-5-preview8</link><description>今天，.NET 5预览8发布了，对于.NET5.0的功能开发已经完成了，这必须要排除待处理的bug，预览8是最后一次预览版本。预计11月正式的.NET5.0版本发布之前还将发布两个正式之前的候选版本，这篇文章描述了.NET5.0版本中的一系列功能。&lt;br /&gt;You can download .NET 5.0, for Windows, macOS, and Linux:
Installers and binaries
Container images
Snap installer
Release notes
Known issues
GitHub issue tracker
今天同时也发布了ASP.NET Core 和 EF Core 。&lt;br /&gt;要使用.NET5我们需要最新版本的 Visual Studio (包括 Visual Studio for Mac) 才能使用 .NET 5 …</description><author>695979933@qq.com</author><category>.NET5</category><category>ASP.NET CORE</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">235AD741-1314-485C-8BEB-C9528510E2FB</guid><pubDate>Wed, 26 Aug 2020 06:53:31 GMT</pubDate></item></channel></rss>