首页 新闻 会员 周边 捐助
0
回答数

待解决问题 30 你赞同用 Minimal API Endpoint 作为 Application 层吗

昨天晚上看到的一篇博文 Treat your .NET Minimal API Endpoint as the application layer,作者的思路让人眼前一亮 The responsibi
1
回答数

待解决问题 30 Agentic 的中文翻译是什么?

Agent 的主流翻译是「智能体」,Agentic 的主流翻译是什么?网上没有找到 deekseek 的回答: "agentic" 的中文翻译是 "主动能动的" 或 "主体性的"。
4
回答数

待解决问题 30 一句话解释什么是 Agentic AI

最近 Agentic AI 比较火,请用一句话解释 —— 什么是 Agentic AI?
1
回答数

回答被采纳 30 C# 中随机获取数组元素的最佳方法

目前在项目中用是 .NET 8 带来的 Random.Shared,请问这是否是随机获取数组元素的最佳方法? bar banner = Random.Shared.GetItems(banners,
1
回答数

回答被采纳 30 如何让 angular 不自动过滤 innerHTML 中的 inline style 代码

下面的模版代码中,innerHTML 会自动过滤 inline style 代码,请问禁用这个自动过滤? <div #contentDiv [innerHTML]="articleContent()"
3
回答数

待解决问题 30 微软推出了开源的 Agentic 框架 Microsoft Agent Framework,你看好吗?

github 仓库地址:https://github.com/microsoft/agent-framework A framework for building, orchestrating and
1
回答数

待解决问题 30 ASP.NET Core 应用出现错误日志:"Invalid operation. The connection is closed"

最近发现一个 ASP.NET Core 项目的日志中有时会出现下面的错误: 2025-10-09 13:01:14.976 [Error] An exception occurred while it
1
回答数

回答被采纳 30 ASP.NET Core Web API:又遇 json 序列化时中文被编码的问题

之前遇到过,通过下面的代码解决了,详见博问 https://q.cnblogs.com/q/115234 public void ConfigureServices(IServiceCollectio
1
回答数

回答被采纳 30 .NET:MediatR 报错 "No service for type 'MediatR.IRequestHandler`2[...]' has been registered"

在重构园子品牌专区代码时,将下面的 MediatR Handler 实现 public class ListArticlesQueryHandler(IArticleRepository articl
1
回答数

回答被采纳 30 Minimal API 报错:"Body was inferred but the method does not allow inferred body parameters"

ASP.NET Core Minimal API 项目在启动时出现下面的错误: System.InvalidOperationException: Body was inferred but the
1
回答数

回答被采纳 30 升级所有 npm 包之后 vscode 扩展无法激活

打开 Developer Tools,在控制台出现下面的错误 Activating extension 'cnblogs.vscode-cnb' failed: The argument 'filen
0
回答数

待解决问题 30 git pull 报错 "incorrect old value provided"

今天在 git pull 一个项目的代码库时出现下面的错误: error: fetching ref refs/remotes/origin/master failed: incorrect old
1
回答数

回答被采纳 30 Kubernetes 节点服务器 MAC 地址问题

在 Kubernetes 集群的任一节点上用 arping 命令 ping 其他节点的 IP 地址,解析出来的 mac 地址都是 ee:ff:ff:ff:ff:ff ~ # arping 10.0.9
1
回答数

已解决问题 30 升级到 .NET 9 后 publish 时 wwwroot 目录中每个文件多了 .br 与 .gz 文件

将一个 ASP.NET Core 项目升级到 .NET 9 后,dotnet publish 输出的 wwwroot 目录中每个文件多了 .br 与 .gz 文件,请问这是什么引起的?
2
回答数

回答被采纳 30 System.IdentityModel.Tokens.Jwt 版本不同引起的 oauth token 验证失败

出问题之前,oauth token 验证正常的时候,基于 IdentityServer 实现的 Authorization Server 项目引用的 System.IdentityModel.Toke
3
回答数

已解决问题 40 通过 EF Core 的 DbContext.Database.GetDbConnection() 获取的 DbConnection 是否需要 Dispose

今天在改进一下项目的代码时遇到的问题,下面的 DbConnection 类型的变量 conn 是否需要使用 using 进行 dispose using var conn = _dbContext.D
1
回答数

回答被采纳 30 阿里云 debian 镜像源问题:"The repository 'http://mirrors.aliyun.com/debian bookworm InRelease' is not signed"

今天一个项目跑 CI 过程中 build 镜像时遇到的问题 Dockerfile 对应的配置 RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g
1
回答数

已解决问题 30 K8S 集群部署 Cilium LoadBalancer Service 遇到问题

准备部署一个 cilium load-balancer service 作为 control-plane 的负载均衡,k8s 集群是用阿里云 ecs 自己搭建的 cilium 安装命令 cilium
1
回答数

回答被采纳 30 如何让 vscode 在格式化 typescript 代码时自动将双引号替换为单引号

已经在 .editorconfig 中添加了下面的规则,但 vscode 依然对 ts 代码中的双引号 "..." 置之不理 [*.ts] quote_type = single
1
回答数

回答被采纳 30 kubectl 命令如何根据 "type: LoadBalancer" 查询 service

比如列出 LoadBalancer 类型的 service,请问用哪个 kubectl 命令?
1
回答数

回答被采纳 30 k8s 集群部署 cilium 遇到问题:"1 node(s) didn't have free ports for the requested pod ports"

使用下面的 kubeadm init 命令创建集群 kubeadm init \ --control-plane-endpoint "kube-api:6443" \ --upload-certs \
1
回答数

回答被采纳 30 Kubernetes 高可用集群部署 Cilium 时如何设置 k8sServiceHost

在 cilium 官方帮助文档 Kubernetes Without kube-proxy 中提供了下面的 cilium 部署命令 API_SERVER_IP=<your_api_server_ip>
1
回答数

回答被采纳 50 新建的 k8s 集群安装 cilium 遇到问题

kubernetes 版本是 1.34,containerd 版本是 2.1.4,cilium 版本是 1.18.1 通过下面的 kubeadmin 命名成功创建了集群 kubeadm init \
1
回答数

回答被采纳 30 "The type 'ITestOutputHelper' is defined in an assembly that is not referenced."

将一个 ASP.NET Core 项目从 .NET 7 升级到到 .NET 9,并将 xunit 从 2.5.0 升级至 2.9.3,升级后出现下面的错误 The type 'ITestOutputH
1
回答数

回答被采纳 30 使用 ASP.NET Core SignalR 时经常出现连接错误

下面的前端 typescript 代码 import { HubConnection, HubConnectionBuilder, HubConnectionState } from '@micros