﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel><title>iwenli's blog</title>
<description>Latest posts from iwenli</description>
<link>http://blog.wenlis.com/</link>
<pubDate>Sun, 18 Jan 2026 03:42:54 GMT</pubDate>
<copyright>(c) {year} iwenli</copyright>
<generator>Moonglade</generator>
<item>
  <title>ASP.NET Core 本地证书过期</title>
  <link>http://blog.wenlis.com/post/2024/1/24/aspnet-core-</link>
  <description>ASP.NET Core 本地证书过期时，若使用 dotnet dev-certs https 工具重新生成证书仍然无效，可以前往 C:\Users{username}\AppData\Roaming\ASP.NET\Https 目录下删除项目对应的证书文件并重新启动 visual studio。
转载自：https://blog.lvhang.site/2023/11/25/asp-net-core-%E6%9C%AC%E5%9C%B0%E8%AF%81%E4%B9%A6%E8%BF%87%E6%9C%9F%E6%97%B6/
</description>
  <author>admin@iwenli.org</author>
  <category>Asp.Net</category>
  <guid isPermaLink="false">387ff838-6cfd-42a0-87ce-9a945ca97a1d</guid>
  <pubDate>Tue, 23 Jan 2024 19:35:57 GMT</pubDate>
</item>
<item>
  <title>在ASP .NET Core中监视文件更改</title>
  <link>http://blog.wenlis.com/post/2018/11/26/watching-for-file-changes-in-asp-net-core</link>
  <description>这是 ASP.NET Core 系列新文章的第八篇。在本文中，我们将学习在开发和调试过程中如何使用 .NET CLI 文件监视工具。
1.运行时调试
假设我们有一个 Sum() 方法，如下所示：
[Route([action])]
public ActionResultstring Sum(
		[FromQuery(Name = num1)] int num1,
		[FromQuery(Name = num2)] int num2)
{
		var sum = (num1 + num2).ToString();
		return ${num1} + {num2} = {sum}.;
}
我们可以使用 dotnet run 从命令行运行Web应用程序：
 dotnet run
然后我们通过Web浏览器访问 https://localhost:5001/api/calc/sum?num1= …</description>
  <author>admin@iwenli.org</author>
  <category>Asp.Net</category>
  <guid isPermaLink="false">e5df494a-e9f1-4fe3-a070-3321dace1ad7</guid>
  <pubDate>Mon, 26 Nov 2018 03:18:03 GMT</pubDate>
</item>
<item>
  <title>ASP.NET Core文件上传到本地或者CDN</title>
  <link>http://blog.wenlis.com/post/2018/10/13/filesystem-or-cdn-storage-from-asp-net-core-file-upload</link>
  <description>它有什么作用？
总结一下代码的作用，这是一个分步说明：
通过HTTP POST上传在网络浏览器中提交的文件。
将文件转换为字节数组。
将文件数据保存到本地文件系统、CDN获取其他你想存储的地方。
它实际上是做什么的？
让我们更深入地看一下代码。
Home控制器下的Index视图显示一个输入字段，用于选择要上传的文件，以及一个Submit按钮以完成上传过程。
这是一个片段：
form enctype =“ multipart/form-data” method =“ post”
...
   input multiple =“ multiple” name =“ files” type =“ file” /
...
   input type =“ submit” value =“上传” /
...
/ form
接下来，Home控制器的Post方法处理上载的文件。它设置为循环浏览多个上传的 …</description>
  <author>admin@iwenli.org</author>
  <category>Asp.Net</category>
  <guid isPermaLink="false">c3d7aa0a-43d6-438f-9b7a-b947dc963225</guid>
  <pubDate>Sat, 13 Oct 2018 10:40:18 GMT</pubDate>
</item>
<item>
  <title>你好ASP .NET Core！</title>
  <link>http://blog.wenlis.com/post/2018/10/6/asp-net-core</link>
  <description>最新支持请阅读官方文档
为什么选择ASP .NET Core？
ASP.NET Core是一个跨平台，高性能，开源的框架，用于构建现代，基于云的网络应用程序，使用ASP.NET Core可以实现：
开发web应用，服务，IoT应用和移动端的后台。
可以使用自己擅长的开发工具实现跨平台开发，包括Windows，macOS和Linux。
灵活部署，既可以部署在云端，也可以部署在本地。
使用ASP.NET Core有以下优点：
跨平台。可以在Windows，macOS和Linux上开发和运行。
高性能。具有轻量级，高性能和模块化的HTTP请求管道。
开源。并且始终关注社区。
灵活部署。可以部署在IIS，Linux和Docker中。
包括其它优点。
.NET Core 架构图
file
随着ASP.NET Core 2.1的发布以及即将发布的2.2（2018年底）和3.0（2019）的发布，现在是 …</description>
  <author>admin@iwenli.org</author>
  <category>Asp.Net</category>
  <guid isPermaLink="false">87ce6f34-39f4-47e5-858d-e62e3f859084</guid>
  <pubDate>Sat, 06 Oct 2018 00:03:37 GMT</pubDate>
</item>
<item>
  <title>Asp.Net 如何让反斜杠(\)不转义</title>
  <link>http://blog.wenlis.com/post/2017/1/17/aspnet-how-to-make-the-backslash-not-escape</link>
  <description>0x1.前言
如题，.net中如果字符串中存在下列转义字符时如何让""不转义呢？
\'    单引号
\    双引号
\\    反斜杠
\0    空字符
\a    感叹号
\b    退格
\f    换页
\n    新行
\r    回车
\t    水平 tab
\v    垂直tab
\\    \
\|    |
\.    .
\-     -
\^    ^
\?    ?
\*     *
\+    +
\{    {
\}    }
\(    (
\)    )
\{    {
\}    }
\[    [
\]    ]
0x2.解决方法
1. \\
2. /
3. @\ 
</description>
  <author>admin@iwenli.org</author>
  <category>Asp.Net</category>
  <guid isPermaLink="false">56cb591b-7804-4a57-b381-7448c4b38b30</guid>
  <pubDate>Tue, 17 Jan 2017 09:12:24 GMT</pubDate>
</item></channel>
</rss>