摘要: foreach (System.Net.NetworkInformation.NetworkInterface f in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()) { if (f.Operati 阅读全文
posted @ 2020-05-06 17:45 邪不压正! 阅读(259) 评论(0) 推荐(0) 编辑
摘要: ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = mc.GetInstances(); foreach (Management 阅读全文
posted @ 2020-05-06 17:43 邪不压正! 阅读(346) 评论(0) 推荐(0) 编辑
摘要: //获取本地连接ip 掩码 网关 DNS NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface bendi in interfaces) { if ( 阅读全文
posted @ 2020-05-06 17:41 邪不压正! 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 一、Visual Studio 2008 =》工具=》选项=》设备工具 =》设备 二、点击【属性】按钮 三、修改【设备的默认输出位置】,Storage是存器的名字,点击【确定】。 四、选中项目 =》右键 =》属性 =》设备 五、选择目标设备 =》点击【...】 六、最后点击【确定】。 阅读全文
posted @ 2019-03-28 10:38 邪不压正! 阅读(464) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Data; using System.Data.SqlServerCe; /// /// The SqlCeHelper class is intended to encapsulate high performance, scalable best practices for ///... 阅读全文
posted @ 2019-03-24 20:40 邪不压正! 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 一、发布重新生成的应用程序到out目录下: dotnet publish -c Release -o out 二、Dockerfile: FROM microsoft/dotnet:latestWORKDIR /appCOPY . .ENV ASPNETCORE_URLS http://0.0.0. 阅读全文
posted @ 2019-01-27 14:27 邪不压正! 阅读(169) 评论(0) 推荐(0) 编辑
摘要: docker run --restart=always --name mysql56 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123 -e TZ=Asia/Shanghai -d mysql:5.6 --character-set-server=utf8mb4 --c 阅读全文
posted @ 2019-01-26 14:23 邪不压正! 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 一、添加Windows服务MainService MainService.cs 二、添加安装程序类SocketServiceInstaller SocketServiceInstaller.cs 三、添加自安装类SelfInstaller 四、程序入口调用服务 阅读全文
posted @ 2018-02-27 11:23 邪不压正! 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 提示: sun.misc.BASE64Encoder找不到jar包的解决方法 右键项目-》属性-》java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!! 阅读全文
posted @ 2018-02-06 15:43 邪不压正! 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: private int FindFrontCamera(){ int cameraCount = 0; Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); cameraCount = Camera.getNumberOfCameras(); // get cameras... 阅读全文
posted @ 2018-01-23 14:57 邪不压正! 阅读(4942) 评论(0) 推荐(0) 编辑