07 2021 档案
摘要:1 修改Program.cs 如下 public class Program { public static void Main(string[] args) { // Create the Serilog logger, and configure the sinks Log.Logger = n
阅读全文
摘要:报错截图 解决方法: 确定启动dll没有拼错,如果确定没有拼错,使用 命令 cd .. 然后返回上一层路径,然后在进入到启动dll所在的目录再执行 dotnet 命令
阅读全文
摘要:1 在项目中添加 hosting.json 文件用来配置端口,内容如下 { "urls": "http://*:12306" } 修改启动项目 Program.cs 文件 Main 方法如下 public class Program { public static void Main(string[
阅读全文
摘要:后台Model public class _0710Model { public int Id { get; set; } public string Name { get; set; } public List<_0710Model> list1;//{ get; set; } public Li
阅读全文
摘要:解决方法: 参考链接 https://www.cnblogs.com/huawublog/p/13565591.html
阅读全文
摘要:## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## ## Get latest from https://github.
阅读全文
摘要:1 在服务器上安装 托管捆绑包 安装 .net 5.0 版本的捆绑包 dotnet-hosting-5.0.7-win 链接:https://pan.baidu.com/s/1P7neU8xJtXe0Neu8sv-Dpg 提取码:qgga 2 使用visual studio 生成发布包。 如果部署模
阅读全文
摘要:解决方法:发布时 部署模式选择“框架依赖”,目标运行时选择“可移植”
阅读全文