In a .NET Core project (library), using Entity Framework, the database generation fails when establishing the model. Could not load assembly 'xxx'. Ensure it is referenced by the startup project 'xxx'. Switching to 64-bit can resolve the issue. Assuming ef cod…

2019年12月15日 0条评论 80点热度 14人点赞 痴者工良 阅读全文

在.NET Core 项目钟(类库),使用Entity Framework,建立模型生成数据库时,失败 Could not load assembly 'xxx'. Ensure it is referenced by the startup project 'xxx'. 改成 64 位即可 假设 ef 代码 public class ApplicationDbContext : IdentityDbContext<User> { public ApplicationDbContext(DbContex…

2019年12月15日 0条评论 6505点热度 14人点赞 痴者工良 阅读全文

4 My board is an Orange Pi 3, and I can only describe it as "卧槽"... I work with .NET Core, and I just can't get this board to work. I have flashed the Debian system on it. To be honest, this board is quite good, but the official system is really not commendabl…

2019年12月15日 0条评论 74点热度 0人点赞 痴者工良 阅读全文

4我的板子是 Orange pi 3,只能以 卧槽来形容。。。 我是搞.net core的,这板子死活搞不了。 刷的是Debain系统。 说实话,这个板子不错,可就是官方的系统实在不敢恭维,内核旧,软件兼容性不行。 不说废话了。 背景 板子系统Debain,内核 4.9,只适配了GCC 4.9. 我要安装 .net core 3 arm64 无法运行,因为要求 GCC version > 5.2   网上的方法,大多是copy的,要下载gcc源码包,然后编译。我想说,你就算用 8G 内存的电脑,解压…

2019年12月15日 0条评论 3109点热度 0人点赞 痴者工良 阅读全文

CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none First Sync the System Time Input the command in shell date If the displayed time is different from your local time, set the time zone first cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime Change the …

2019年12月15日 1条评论 4319点热度 0人点赞 痴者工良 阅读全文

CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 先同步系统时间 shell 输入命令 date 如果显示的时间跟你本地时间不一样,先设置时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 更改 apt-get 源 对于开发板来说,千万别乱改官方源,上面问题的根源是不支持https,所以先把源都改成http 原文件备份 sudo cp /etc/apt/sources.list /etc/apt…

2019年12月15日 1条评论 4291点热度 0人点赞 痴者工良 阅读全文

  In the Rancher UI, when adding a host and running in the shell via SSH, clicking the "Shutdown" button showed no information about the host. First, check whether the application is functioning normally by going to Applications - All Applications. If it …

2019年12月15日 0条评论 3504点热度 0人点赞 痴者工良 阅读全文

  在 Rancher UI 中,添加主机,在 Shell ssh 运行了,然后 点击 “关闭” 按钮,发现没有显示如何主机。 第一步,先去查看应用是否正常,就是 应用 - 全部应用 如果显示是 unhealthy ,说明不正常。 解决方法1: 去云主机的控制台,打开安全组,开发500、4500端口,因为服务器默认有防火墙、安全组,会拦截端口   解决方法2: 1,删除一些文件 rm -rf /var/lib/rancher/state 2,删除 agent 容器 #列出…

2019年12月15日 0条评论 3468点热度 0人点赞 痴者工良 阅读全文

 Directory 1. Introduction 2. Install Virtual Serial Port Software 3. Create a New Project and Add flyfire.CustomSerialPort 4. Description of flyfire.CustomSerialPort 5. Start Using flyfire.CustomSerialPort 6. Implement Writing Data to Serial Port 7. Impl…

2019年12月15日 1条评论 80点热度 0人点赞 痴者工良 阅读全文

 目录 1,前言 2,安装虚拟串口软件 3,新建项目,加入 flyfire.CustomSerialPort 4,flyfire.CustomSerialPort 说明 5,开始使用 flyfire.CustomSerialPort 6,实现把数据写入串口 7,实现监听串口消息、多设备进行通讯 8,Modbus 协议的实现例子 1,前言 开发环境:在 Visual Studio 2017,.NET Core 2.x 串口通讯用于设备之间,传递数据,物联网设备中广泛使用串口方式连接通讯,…

2019年12月15日 1条评论 3055点热度 0人点赞 痴者工良 阅读全文

Recently, I was studying serial communication in a cross-platform manner under .NET Core, and I came across an article discussing communication in Linux/IoT. The main issues arise with the following two libraries: SerialPortStream flyfire.CustomSerialPort Auth…

2019年12月15日 2条评论 114点热度 2人点赞 痴者工良 阅读全文

前些天在学习在 .NET Core下,跨平台使用串口通讯,有一篇文章说到在Linux/物联网下,实现通讯。 主要问题出现在以下两个类库 SerialPortStream flyfire.CustomSerialPort 作者地址: https://www.cnblogs.com/lonelyxmas/p/10363869.html   说明 由于.net core 2.x 中,已经找不到 serialport 库,使用需要使用第三方框架,可以直接在 Nuget 中搜索 SerialPortStream 开…

2019年12月15日 2条评论 4555点热度 2人点赞 痴者工良 阅读全文

Table of Contents:   1. HttpWebRequest Instantiation 2. GetResponse to Retrieve Request Results 3. Retrieve Results 4. Get Stream Information   HttpWebRequest is an HTTP request class that inherits from WebRequest. WebRequest is an abstract clas…

2019年12月15日 3条评论 3631点热度 0人点赞 痴者工良 阅读全文

目录:   1,HttpWebRequest 实例化 2,GetResponse 获取请求结果 3,获取结果 4,获取流信息   HttpWebRequest 是一个Http 请求类,继承于 WebRequest。 WebRequest 是一个抽象类,能够对统一资源标识符 (URI) 发出请求。 WebRequest 有以下派生类:   System.IO.Packaging.PackWebRequest System.Net.FileWebRequest Syst…

2019年12月15日 3条评论 3631点热度 0人点赞 痴者工良 阅读全文

The Author's Website whuanle.cn Upon visiting, you will be redirected to https://www.whuanle.cn Similarly, visiting www.whuanle.cn also redirects to https://www.whuanle.cn. The author's website is deployed using Tencent Cloud + jexus and is developed with ASP.…

2019年12月15日 1条评论 74点热度 0人点赞 痴者工良 阅读全文

笔者的网站 whuanle.cn 访问你会发现,跳转到 https://www.whuanle.cn 同样,访问 www.whuanle.cn,也跳转到 https://www.whuanle.cn。 笔者的网站使用 腾讯云+jexus来部署,网站使用ASP.NET Core来编写。 加上免费的 CDN 加速、强制跳转 https,让网站感觉 “很正规”、速度又快。 你想使用腾讯云那么多的免费产品,首先你得有一台腾讯云服务器。  腾讯云基础产品有 云服务器 CDN 云网络 云存储 …

2019年12月15日 1条评论 3225点热度 0人点赞 痴者工良 阅读全文

So far, I have interviewed  5  10 companies... The company for this interview task is a listed company. The task is in English (translation provided below): You're given a task of writing a simple program where a user will be able to perfor…

2019年12月15日 3条评论 3479点热度 1人点赞 痴者工良 阅读全文

目前为止,已经面试  5  10 家了。。。 这个试题面试的公司是某一上市公司。 试题是英文的(后面给出翻译): you're given a task of writing a simple program where an and user will be able performing some basic spreadsheet operation(i.e. sum) in a nutshell,the program should work as follows: …

2019年12月15日 3条评论 3427点热度 1人点赞 痴者工良 阅读全文

The article is continuously being updated. Features are not concentrated in a specific namespace, but rather different features exist under different namespaces. Features are syntactic sugar provided under a specific namespace. Which namespaces provide feature…

2019年12月15日 0条评论 110点热度 0人点赞 痴者工良 阅读全文

文章持续补充中 特性并不是集中在某一命名空间中,而是不同的特性在不同的命名空间下,特性是某一命名空间下提供的语法糖。 有哪些命名空间提供特性:   命名空间   描述 Microsoft.Build.Framework 包含定义任务和记录器与 MSBuild 引擎的交互方式的类型 Microsoft.JScript 包含支持使用 JScript 语言编译和生成代码的类 Microsoft.SqlServer.Server   Microsoft.VisualBasic   Micros…

2019年12月15日 0条评论 2910点热度 0人点赞 痴者工良 阅读全文
1434445464754