摘要:
## .NET SDK Download timeout 安装新版c#插件 遇到 自动下载超时 无法自动下载 ### 解决方法 手动安装SDK 指向本地已经存在的SDK ### 步骤 1. 在setting中搜索 配置项 existingDotnetPath 进入setting.json中 2. 添 阅读全文
摘要:
wpf 使用Generic Host public partial class App : Application { private IHost _host; public App() { _host = new HostBuilder() .ConfigureAppConfiguration( 阅读全文
摘要:
问题描述:在launchSetting中设置 launchUrl:"swagger" 后无法如预期跳转自动跳转到swagger 产生原因: vscode中使用的是omnisharp 实际omnisharp启动的配置文件是 .vscode/launch.json文件 解决方法: 增加配置: githu 阅读全文
摘要:
单文件发布 dotnet publish -c release -r win-x64 --self-contained --source www.nuget.org 使用dotnet publish 发布 -c 指定 编译版本 -r 指定 runtime --self-contained 使用命令则 阅读全文
摘要:
EFcore 在asp.net core 实现了DI后 如何在design时的迁移 programs.cs 中 首先注册实现dbcontenxt的实现类 同时配置连接字符串,指定dbcontenxt实现类所在的项目的Assembly程序集(确保引用dbcontext所在项目) builder.Ser 阅读全文
摘要:
enum NewtonSoft序列化 默认序列化 enum type{ a,b,c } object model =new { tp=type.a, } console.writeLine(jsonconvert.SerializeObject(model)); 输出: {"tp":0} class 阅读全文