随笔分类 -  Asp.Net Core

清理并恢复 NuGet 包缓存
摘要:dotnet nuget locals all --clear dotnet restore nuget镜像 dotnet nuget add source https://repo.huaweicloud.com/repository/nuget/v3/index.json -n huawei d 阅读全文

posted @ 2025-02-26 21:00 刘顺利 阅读(3) 评论(0) 推荐(0) 编辑

JWT权限验证
摘要:using CommonUse; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens; using Microsoft.OpenApi.Models; using Syst 阅读全文

posted @ 2025-01-14 09:55 刘顺利 阅读(10) 评论(0) 推荐(0) 编辑

UOS下配置.net core环境
摘要:1.下载sdk https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/sdk-8.0.403-linux-x64-binaries 2.解压并拷贝到目标目录 mkdir -p $HOME/dotnet && tar zxf dotn 阅读全文

posted @ 2024-10-31 21:41 刘顺利 阅读(143) 评论(0) 推荐(0) 编辑

vs2022 iis express 自动关闭
摘要: 阅读全文

posted @ 2024-08-06 00:18 刘顺利 阅读(9) 评论(0) 推荐(0) 编辑

VS版本问题
摘要:版本设置成8.0.*时出现两个错误CS8357和CS7035 CS7035 通过项目属性-生成-错误与警告-取消显示警告中加入7035. CS8357 通过项目文件中加入<Deterministic>false</Deterministic> 阅读全文

posted @ 2024-07-21 17:43 刘顺利 阅读(8) 评论(0) 推荐(0) 编辑

Ubuntu 下访问MSSql 提示 SSL Handshake failed with OpenSSL error
摘要:简而言之就是:SSL Handshake failed with OpenSSL error 大致意思是连接服务器成功,但是在握手的时候报了异常,里面有 openssl、ssl_error 这样的字眼,回顾了一下, 同样的部署方式,在centos 7阿里云服务器里面是没有这个问题的,推测代码和环境都 阅读全文

posted @ 2021-07-21 23:06 刘顺利 阅读(735) 评论(0) 推荐(0) 编辑

ubuntu 开机启动
摘要:1.创建sh文件 lsl@lsl-Mi-Laptop-Pro-15:~/文档$ touch runffs1.sh 2.编辑sh文件lsl@lsl-Mi-Laptop-Pro-15:~/文档$ gedit runffs.sh 文件内容: #!/bin/sh cd /home/lsl/文档/FFS do 阅读全文

posted @ 2020-05-15 10:55 刘顺利 阅读(248) 评论(2) 推荐(0) 编辑

ASP.NET OAuth 2.0 新手上路
摘要:https://www.cnblogs.com/xiaobai123/p/9348074.html 阅读全文

posted @ 2020-04-01 19:43 刘顺利 阅读(90) 评论(0) 推荐(0) 编辑

.NET Core中使用Cookie步骤
摘要:1.Nuget Microsoft.AspNetCore.Authentication.Cookies 2.using Microsoft.AspNetCore.Authentication.Cookies 3. 阅读全文

posted @ 2019-02-01 17:50 刘顺利 阅读(263) 评论(0) 推荐(0) 编辑

.NET Core中使用Session步骤
摘要:.NET Core中使用Session步骤如下: 1、安装Microsoft.AspNetCore.Session NuGet包 2、修改Startup.cs 添加相关服务,services.AddSession()和app.UseSession() 3、Session 用法 引用 Session写 阅读全文

posted @ 2019-02-01 17:12 刘顺利 阅读(427) 评论(0) 推荐(0) 编辑

asp.net core 读取配置
摘要:var configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory) .AddJsonFile("appsettings.json") .Build(); DBUtility.ConfigIn 阅读全文

posted @ 2019-02-01 15:07 刘顺利 阅读(96) 评论(0) 推荐(0) 编辑

.net core中使用GB2312编码
摘要:引用 System.Text.Encoding.CodePages 注册 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 阅读全文

posted @ 2019-01-31 16:30 刘顺利 阅读(302) 评论(0) 推荐(0) 编辑

路径问题
摘要:在进行asp.net core 开发时,路径应该使用“/”,而非"\",以兼容linux. 阅读全文

posted @ 2019-01-24 16:33 刘顺利 阅读(104) 评论(0) 推荐(0) 编辑

Install the .NET SDK In Ubuntu
摘要:安装环境wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo add-apt-repos 阅读全文

posted @ 2019-01-23 11:12 刘顺利 阅读(185) 评论(2) 推荐(0) 编辑

Asp.Net Core 包
摘要:Scaffold-DbContext "Server=.;Database=ReXYControl;User ID=infos1;Password=20030102" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models Install- 阅读全文

posted @ 2018-11-14 18:09 刘顺利 阅读(171) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示