![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net Core 3.1
ShanShanYouWen
这个作者很懒,什么都没留下…
展开
-
dotnet Nuget 发布自定义dll
路径定位到生成 .nupkg文件下,输入指令 dotnet nuget push PackageId.version.nupkg --api-key nuget_apikey --source https://api.nuget.org/v3/index.json。包ID(创建Nuget apikey 需要用到)使用框架版本号版本号原创 2023-09-18 12:39:08 · 215 阅读 · 0 评论 -
Asp.Net Core3.1 Swagger简单使用
.NetCore3.1 中如何配置使用swagger工具显示API原创 2022-10-09 16:07:14 · 504 阅读 · 0 评论 -
C# restsharp调用webapi接口,接口接收json多了很多转义符
用restsharp方式调用webapi,post json 数据到接口上,出现很多转义符,目前只能在json串做处理,暂时未找到方法。接收到json串,对json串进行处理。原创 2022-09-09 15:00:17 · 1022 阅读 · 0 评论 -
C# IsAssignableFrom 使用
测试框架 NetCore3.1 父类 BaseInfo 子类 UserInfo 判断子类UserInfo的父类是否是BaseInfo typeof(BaseInfo).GetTypeInfo().IsAssignableFrom(typeof(UserInfo).GetTypeInfo()) 要用GetTypeInfo() 方法 结果为True typeof(UserInfo).GetTypeInfo().IsAssignableFrom(typeof(BaseInfo).GetTypeInfo(原创 2022-03-17 10:20:20 · 1469 阅读 · 0 评论 -
.NetCore 使用log4net日志
.NetCore 使用log4net日志 NuGet Program.cs .ConfigureLogging(LoggingBuilder => { LoggingBuilder.AddLog4Net(); }) Startup.cs public static ILoggerRepository repository { get; set; } re...原创 2020-11-09 17:53:28 · 307 阅读 · 0 评论 -
Asp.net Core 3.1 SignalR 简单例子
.Net Core3.1 SignalR 简单例子 环境: 操作系统 Windows 10 开发工具 Microsoft Visual Studio 2019 语言 C# IIS版本 10 浏览器:360极速浏览器,Google Chrome,IE 11 服务端 Nugget 有几个不一定需要 启动文件配置文件, 新建Hub类 ChatHub ...原创 2020-04-02 11:04:31 · 2593 阅读 · 2 评论