随笔分类 -  C#

摘要:一、下载网址:https://www.nuget.org/packages/CefSharp.H264.x64/109.1.110?_src=templateDownload package (82.59 MB) 如果是直接下载的cefsharp.h264.x64.109.1.110.nupkg 1 阅读全文
posted @ 2024-09-16 11:03 冬音 阅读(452) 评论(1) 推荐(0) 编辑
摘要:1)下载 .net 8 运行时 https://dotnet.microsoft.com/zh-cn/download/dotnet/8.0 依据运行程序类型,下载运行时,比如需要运行web应用,下载如同运行时,一般选择 x64 版本 2)上传到服务器 解压 tar -xzf dotnet-runt 阅读全文
posted @ 2024-08-31 15:38 冬音 阅读(486) 评论(0) 推荐(0) 编辑
摘要:编写问题程序 示例代码 using System; using System.Collections.Generic; using System.Threading; namespace ConsoleApplication1 { class Program { private readonly L 阅读全文
posted @ 2022-11-01 20:23 冬音 阅读(571) 评论(0) 推荐(0) 编辑
摘要:依赖注入那些事儿 - T2噬菌体 - 博客园 (cnblogs.com) 阅读全文
posted @ 2022-10-17 15:02 冬音 阅读(14) 评论(0) 推荐(0) 编辑
摘要:c#:HttpClient使用详解_jackletter的博客-CSDN博客_c# httpclient 阅读全文
posted @ 2022-10-14 16:22 冬音 阅读(152) 评论(0) 推荐(0) 编辑
摘要:1 准备 1)公网ip的服务器(本文以Centos7系统为例) 2)内网电脑(本文以Windows7为例) 2 实现步骤 2.1 服务端 linux服务器下载对应frp:Releases · fatedier/frp (github.com) wget https://github.com/fate 阅读全文
posted @ 2022-02-06 20:20 冬音 阅读(617) 评论(0) 推荐(0) 编辑
摘要:安装以下三个证书,需选择“受信任的根证书颁发机构” 证书下载:https://download.csdn.net/download/wnmwi/20665843 https://blog.csdn.net/sgmcumt/article/details/86716890 阅读全文
posted @ 2021-07-31 15:31 冬音 阅读(986) 评论(0) 推荐(0) 编辑
摘要:1.下载nuget.exe 下载地址:https://dist.nuget.org/win-x86-commandline/latest/nuget.exe 或者 https://dist.nuget.org/ 下载后不用安装,放到文件夹即可 2.添加nuget.exe的path路径,例如nuget 阅读全文
posted @ 2020-09-11 10:26 冬音 阅读(455) 评论(0) 推荐(0) 编辑
摘要:C#调用python脚本错误: 使用cmd直接运行脚本报错: TabError: inconsistent use of tabs and spaces in indentation 查看日志报错: Python脚本运行出现语法错误:IndentationError: unindent does n 阅读全文
posted @ 2020-07-02 22:05 冬音 阅读(164) 评论(0) 推荐(0) 编辑
摘要:安装 libgdiplus-devel yum install libgdiplus-devel 如果出现错误 No package libgdiplus-devel available. 原因可能是yum源不支持该安装包 更换yum源为 EPEL yum 源 rpm -ivh https://dl 阅读全文
posted @ 2020-05-22 13:08 冬音 阅读(1918) 评论(0) 推荐(1) 编辑
摘要:从ASP.NET Core RC2开始,可以通过注入 IHostingEnvironment 服务对象来取得Web根目录和内容根目录的物理路径,如下所示: using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; name 阅读全文
posted @ 2020-05-17 19:30 冬音 阅读(3723) 评论(1) 推荐(0) 编辑
摘要:搭建在 IIS 上的 Web API 若长时间不访问,会出现第一次访问耗时较长的现象,这与其调用应用程序池的 Idle Time-out(minutes) 即闲置超时设置有关。默认值为20,修改为0即可。 https://www.cnblogs.com/xunzhiyou/p/10796190.ht 阅读全文
posted @ 2020-05-07 19:23 冬音 阅读(949) 评论(0) 推荐(0) 编辑
摘要:静态文件要放到wwwroot目录中才能访问 linux服务器部署运行报错 System.Net.Http.HttpRequestException: The SSL connection could not be establ ... 在发布文件 *runtimeconfig.json 中添加配置 阅读全文
posted @ 2020-05-04 23:31 冬音 阅读(986) 评论(0) 推荐(0) 编辑
摘要:1.本地编写一个mvc网站 代码编辑器:Visual studio 2017、2019、Visual Code 均可 1)搭建 略. (请自行搜索如何编辑mvc,或看文末参考链接) 2)配置 Program.cs需要配置绑定ip,否则linux服务器上默认localhost公网是访问不到的 publ 阅读全文
posted @ 2020-04-06 21:22 冬音 阅读(840) 评论(0) 推荐(0) 编辑
摘要:Assembly = 程序集 = 装配件 命名空间是类的逻辑组织形式,程序集是类的物理组织形式。 程序集其实和命名空间没有什么必然的联系。 程序集1: namespace1{ public class A1{...} public class A2{...} } namespace2{ public 阅读全文
posted @ 2020-04-02 20:18 冬音 阅读(847) 评论(0) 推荐(0) 编辑
摘要:在*.sln文件同目录下新建配置文件nuget.config,内容为 <?xml version="1.0" encoding="utf-8"?> <configuration> <config> <add key="repositorypath" value="..\packages\" /> < 阅读全文
posted @ 2020-03-22 11:00 冬音 阅读(2278) 评论(0) 推荐(0) 编辑
摘要:解决方案:VS中"工具"->“选项”->“Web项目”->“对网站和项目使用IIS Express的64位版”,如果未勾选的话,勾选以后问题解决。 https://blog.csdn.net/liu2435554565/article/details/89349019 阅读全文
posted @ 2020-01-17 16:59 冬音 阅读(3200) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/knowledgesea/p/3163725.html 阅读全文
posted @ 2019-12-11 15:31 冬音 阅读(122) 评论(0) 推荐(0) 编辑
摘要:C#里List.Sort的用法 IComparer接口及Comparison委托应用于集合排序 需要对list进行排序,可以用list.Sort()方法。该方法有多个重载。 (1)使用IComparer<T>接口 可以为Sort传入IComparer<T>的实现类的实例对象,该接口为: void S 阅读全文
posted @ 2019-12-11 10:54 冬音 阅读(1835) 评论(0) 推荐(0) 编辑
摘要:通过查阅网上相关资料和查看微软源码,我对Dictionary有了更深的理解。 Dictionary,翻译为中文是字典,通过查看源码发现,它真的内部结构真的和平时用的字典思想一样。 我们平时用的字典主要包括两个两个部分,目录和正文,目录用来进行第一次的粗略查找,正文进行第二次精确查找。通过将数据进行分 阅读全文
posted @ 2019-12-05 15:20 冬音 阅读(6838) 评论(0) 推荐(1) 编辑