随笔分类 - .Net Core
摘要:1.在解决方案下新建项目BuildScript 2.在BuildScript项目下新建BuildScript.cs文件 3.Nuget安装FlubuCore包 4.BuildScript.cs内容 using System; using System.IO; using System.Linq; u
阅读全文
摘要:1.Program.js Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 2.解压读取压缩包时 using Stream fileStream = file.OpenReadStream(); using ZipArchi
阅读全文
摘要:1.场景 使用EFCore.BulkExtensions包执行MySQL批量操作报错 Loading local data is disabled; this must be enabled on both the client and server side 2.解决 1.在数据库连接字符串上加上
阅读全文
摘要:1 编写Dockerfile FROM mcr.microsoft.com/dotnet/aspnet:6.0 WORKDIR /root RUN apt update \ && apt install wget build-essential zlib1g-dev libncurses5-dev
阅读全文
摘要:1 下载SDK https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0 2 创建dotnet文件夹并解压SDK mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.407-linux-x64.tar.g
阅读全文
摘要:1 新建nuget.config文件,内如如下 <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="NuGet" value="https://api.nuget.org/v3/index
阅读全文