摘要:
// Import necessary namespaces using System.Net.Http; using System.Text; using System.Threading.Tasks; // Define a method to send a message to the WeC 阅读全文
摘要:
执行以下命令即可 dotnet dev-certs https --clean dotnet dev-certs https --trust Enforce HTTPS in ASP.NET Core | Microsoft Learn AuthenticationException: The re 阅读全文
摘要:
/// <summary> /// SwaggerIgnoreAttribute /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method|AttributeTargets.Field|Attrib 阅读全文
摘要:
1、本地调试正常, 部署到Docker里,会报错: Unable to load shared library 'libSkiaSharp' or one of its dependencies. 解决办法:把SkiaSharp包删掉,引用另一个包SkiaSharp.NativeAssets.Lin 阅读全文
摘要:
之前一直在Linux上玩docker,这次尝试下在windows上操作docker。做下总结: 首先启动docker desktop。 1、VS中右键-发布项目 2、在dockerfile所在目录下执行 docker build -t test:v1.0 . 3、docker images 查看镜像 阅读全文
摘要:
var assembly = Assembly.GetExecutingAssembly(); var stream = assembly.GetManifestResourceStream(path) 得到的stream是null, 解决办法:找到文件,右键-属性-生成操作-改为嵌入资源 阅读全文
摘要:
git一个本地仓库,配置两个远程仓库,git push的时候会推送到两个远程仓库 方法: 找到并打开git的配置.git/config。 把url改为如下 git push看下效果 阅读全文
摘要:
一直用postman调试http接口,很顺手。 这次试了下调试grpc接口,方便 然后导入proto文件 选择调用的grpc接口,调用 阅读全文
摘要:
RazorEngine实现代码生成器 TODO 阅读全文
摘要:
示例: var templateContent = "验证码是:${code},有效期5分钟"; var valueRegex = new Regex("\\${.*?}"); var matches = valueRegex.Matches(templateContent); 以上正则会匹配到 $ 阅读全文