上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 环境:win11,docker 4.28.0 ,Net8 。使用windows版docker 跑老外的run-aspnetcore-microservices 这个分布式项目时,最开始直接运行会遇到这个问题。中间也试了几种方法,有ok也有不行的,有些较为麻烦。 Net8开始 Docker 端口 默认 阅读全文
posted @ 2024-04-13 19:17 孤海飞雁 阅读(445) 评论(0) 推荐(1)
摘要: 先注册绑定事件 FileSystemWatcher fileSystemWatcher = new FileSystemWatcher(); fileSystemWatcher.Path = Directory.GetCurrentDirectory(); fileSystemWatcher.Not 阅读全文
posted @ 2024-04-09 19:27 孤海飞雁 阅读(57) 评论(0) 推荐(0)
摘要: 1 AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); 最后 ConfigurationBuilder 添加addjson的信息,存到集合 IList<IConfigurationSource>里 2 buil 阅读全文
posted @ 2024-03-28 18:01 孤海飞雁 阅读(265) 评论(0) 推荐(0)
摘要: F:\SourceCode\Net\Net8\runtime\docs\workflow\building\libraries\ 文件看下编译命令 F:\SourceCode\Net\Net8\runtime\docs\workflow\requirements\查看编译所需文件 build.cmd 阅读全文
posted @ 2024-03-24 18:48 孤海飞雁 阅读(49) 评论(0) 推荐(0)
摘要: 定义要监听的对象,里面添加监听对象名称和方法和参数。定义定时执行,获取上下文通过grpc 传送到 客户端 继承IObserver<DiagnosticListener> 在OnNext(DiagnosticListener listener) 方法里获构造函数注入的监听对象 然后遍历取出数据生成新对 阅读全文
posted @ 2024-03-11 17:35 孤海飞雁 阅读(31) 评论(0) 推荐(0)
摘要: .AddTransient<IFoo, Foo>() // //ImplementationType 根据类型 .AddScoped<IBar>(_ => new Bar())//ImplementationFactory 通过工厂创建 .AddSingleton<IBaz>(new Baz()); 阅读全文
posted @ 2024-03-10 16:43 孤海飞雁 阅读(43) 评论(0) 推荐(0)
摘要: 20241008 这里会很久才会出现这个错误,应该是要挂梯子 下载sdk zip 解压到F:\SourceCode\Net\Net8\RunTime\runtime\.dotnet下 命令 可以一个一个来 build.cmd -subset clr build.cmd libs 要是环境都ok,还是 阅读全文
posted @ 2024-03-08 17:37 孤海飞雁 阅读(272) 评论(0) 推荐(0)
摘要: 所需工具JDK 12Nodejs 18Python VS里安装C++ VS里安装clone 官方库,checkout 到8.1git submodule update --init --recursive 这个我是没用也okSet-ExexutionPolicy RemoteSigned 用Powe 阅读全文
posted @ 2024-03-08 14:59 孤海飞雁 阅读(47) 评论(0) 推荐(0)
摘要: 在csproj里 <TargetFramework>net8;</TargetFramework> <TargetFrameworks>net8;net6;</TargetFrameworks> 加了s 的支持多个版本 如果vs 有提示 项目“xxxxxxx”在上一操作期间遇到问题: “Debug| 阅读全文
posted @ 2024-02-24 17:20 孤海飞雁 阅读(65) 评论(0) 推荐(0)
摘要: Cannot provide a value for property 'ScrollToLocationHash' on type 'Microsoft.AspNetCore.Components.Routing.Router'. There is no registered service of 阅读全文
posted @ 2024-02-23 13:56 孤海飞雁 阅读(95) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页