随笔分类 -  .NET/C#

.NET/C#
C#12 .NET8主构造函数的妙用
摘要:搬运AI生成的一篇文章,非常受益。减少40%冗余代码; 在 .NET 8 和 C# 12 中引入的 Primary Constructors(主构造函数) 是一项重大语法革新,它通过简化类与结构体的初始化逻辑,显著降低了样板代码量,提升了代码可读性和开发效率。以下是其核心优势及典型应用场景的深度解析 阅读全文

posted @ 2025-06-18 00:41 SCscHero 阅读(32) 评论(0) 推荐(0)

.Net MVC实现全局异常捕捉返回通用异常页面的一种方式
摘要:阅文时长 | 0.54分钟 字数统计 | 876字符 主要内容 | 1、引言&背景 2、部分通用设计代码 3、声明与参考资料 『.Net MVC实现全局异常捕捉返回通用异常页面的一种方式』 编写人 | SCscHero 编写时间 | 2022/4/3 PM11:54 文章类型 | 系列 完成度 | 阅读全文

posted @ 2022-04-04 00:42 SCscHero 阅读(390) 评论(0) 推荐(0)

.Net MVC实现角色-API权限验证的一种方式
摘要:阅文时长 | 1.15分钟 字数统计 | 1844.8字符 主要内容 | 1、引言&背景 2、部分设计分享 3、声明与参考资料 『.Net MVC实现角色-API权限验证的一种方式』 编写人 | SCscHero 编写时间 | 2022/3/27 PM9:31 文章类型 | 系列 完成度 | 已完成 阅读全文

posted @ 2022-04-04 00:37 SCscHero 阅读(747) 评论(0) 推荐(0)

.Net FW项目跑不起来且无Error信息
摘要:阅文时长 | 0.17分钟 字数统计 | 280.8字符 主要内容 | 1、引言&背景 2、分析步骤 3、解决方案 4、声明与参考资料 『.Net FW项目跑不起来且无Error信息』 编写人 | SCscHero 编写时间 | 2022/3/27 PM8:48 文章类型 | 系列 完成度 | 已完 阅读全文

posted @ 2022-03-27 21:13 SCscHero 阅读(348) 评论(0) 推荐(0)

IIS寄托多网站找到对应ID的两种方式
摘要:阅文时长 | 0.2分钟 字数统计 | 320.8字符 主要内容 | 1、引言&背景 2、IIS视图查看 3、appcmd CLI 4、声明与参考资料 『IIS寄托多网站找到对应ID的两种方式』 编写人 | SCscHero 编写时间 | 2022/3/25 PM3:5 文章类型 | 系列 完成度 阅读全文

posted @ 2022-03-27 16:06 SCscHero 阅读(325) 评论(0) 推荐(0)

.Net FW上线报错:The OwinStartup attribute discovered in assembly 'AppName'.
摘要:阅文时长 | 2.32分钟 字数统计 | 3726.4字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『.Net FW上线报错:The OwinStartup attribute discovered in assembly 'AppName'.』 编写人 | SCscHero 阅读全文

posted @ 2022-02-19 19:13 SCscHero 阅读(452) 评论(0) 推荐(0)

.Net FW下预编译带来的启动错误
摘要:阅文时长 | 0.67分钟 字数统计 | 1080.8字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『.Net FW下预编译带来的启动错误』 编写人 | SCscHero 编写时间 | 2022/2/18 AM11:25 文章类型 | 系列 完成度 | 已完成 座右铭 每一个 阅读全文

posted @ 2022-02-19 19:04 SCscHero 阅读(675) 评论(0) 推荐(0)

.NetCore程序寄托于IIS部署时提示:进程无法访问该文件,因为它正在被其他进程使用。
摘要:阅文时长 | 0.55分钟 字数统计 | 884.8字符 主要内容 | 1、引言&背景 2、解决详细步骤 3、声明与参考资料 『.NetCore程序寄托于IIS部署时提示:进程无法访问该文件,因为它正在被其他进程使用。』 编写人 | SCscHero 编写时间 | 2022/2/17 PM9:42 阅读全文

posted @ 2022-02-18 11:09 SCscHero 阅读(878) 评论(0) 推荐(0)

.Net异常:The Web server is configured to not list the contents of this directory.
摘要:阅文时长 | 0.76分钟 字数统计 | 1231.2字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『.Net异常:The Web server is configured to not list the contents of this directory.』 编写人 | 阅读全文

posted @ 2022-02-05 23:06 SCscHero 阅读(894) 评论(0) 推荐(0)

.Net异常:ASP.NET Core does not support multiple apps in the same app pool
摘要:阅文时长 | 0.69分钟 字数统计 | 1116字符 主要内容 | 1、引言&背景 2、排查思路&解决方案 3、声明与参考资料 『.Net异常:ASP.NET Core does not support multiple apps in the same app pool』 编写人 | SCscH 阅读全文

posted @ 2022-02-05 23:04 SCscHero 阅读(1360) 评论(0) 推荐(0)

.NetCore异常:Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.
摘要:阅文时长 | 1.28分钟 字数统计 | 2058.4字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『.NetCore异常:Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencie 阅读全文

posted @ 2022-01-31 02:51 SCscHero 阅读(730) 评论(0) 推荐(0)

在cshtml文件中使用预编译语法
摘要:阅文时长 | 0.29分钟 字数统计 | 474.4字符 主要内容 | 1、引言&背景 2、解决方案示例 3、声明与参考资料 『在cshtml文件中使用预编译语法』 编写人 | SCscHero 编写时间 | 2022/1/23 PM1:0 文章类型 | 系列 完成度 | 已完成 座右铭 每一个伟大 阅读全文

posted @ 2022-01-23 22:29 SCscHero 阅读(763) 评论(0) 推荐(0)

记一次.Net Core程序启动失败的排查过程
摘要:阅文时长 | 2分钟 字数统计 | 3212字符 主要内容 | 1、引言&背景 2、排查.NetCore启动失败详细过程 3、声明与参考资料 『记一次.Net Core程序启动失败的排查过程』 编写人 | SCscHero 编写时间 | 2021/12/23 PM2:6 文章类型 | 系列 完成度 阅读全文

posted @ 2022-01-18 20:11 SCscHero 阅读(2438) 评论(0) 推荐(0)

IIS中应用程序池自动停止,重启报错
摘要:阅文时长 | 0.2分钟 字数统计 | 329.6字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『IIS中应用程序池自动停止,重启报错』 编写人 | SCscHero 编写时间 | 2022/1/3 PM12:32 文章类型 | 系列 完成度 | 已完成 座右铭 每一个伟大的 阅读全文

posted @ 2022-01-04 13:25 SCscHero 阅读(1433) 评论(0) 推荐(0)

WCF中常见的报错:The content type text
摘要:阅文时长 | 0.34分钟 字数统计 | 551.2字符 主要内容 | 1、引言&背景 2、问题分析 3、解决方案 4、声明与参考资料 『WCF中常见的报错:The content type text』 编写人 | SCscHero 编写时间 | 2021/12/28 PM3:15 文章类型 | 系 阅读全文

posted @ 2021-12-29 18:53 SCscHero 阅读(741) 评论(0) 推荐(0)

.Net启动程序报错:It was not possible to find any compatible framework version
摘要:阅文时长 | 0.68分钟 字数统计 | 1092字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『.Net启动程序报错:It was not possible to find any compatible framework version』 编写人 | SCscHero 编 阅读全文

posted @ 2021-12-19 00:03 SCscHero 阅读(2423) 评论(0) 推荐(0)

浏览器报:net::ERR_EMPTY_RESPONSE解决方案
摘要:阅文时长 | 0.48分钟 字数统计 | 782.4字符 主要内容 | 1、引言&背景 2、修改注册表的解决方案 3、声明与参考资料 『浏览器报:net::ERR_EMPTY_RESPONSE解决方案』 编写人 | SCscHero 编写时间 | 2021/12/17 AM10:28 文章类型 | 阅读全文

posted @ 2021-12-17 15:00 SCscHero 阅读(6352) 评论(0) 推荐(0)

WCF·无法自动进入并单步执行服务器。调试器未能在服务器进程中停止。
摘要:阅文时长 | 0.36分钟 字数统计 | 588.8字符 主要内容 | 1、引言&背景 2、声明与参考资料 『WCF·无法自动进入并单步执行服务器。调试器未能在服务器进程中停止。』 编写人 | SCscHero 编写时间 | 2021/8/20 PM5:1 文章类型 | 系列 完成度 | 已完成 座 阅读全文

posted @ 2021-08-21 01:17 SCscHero 阅读(892) 评论(0) 推荐(0)

.Net·WCF·Web服务器被配置为不列出此目录的内容
摘要:阅文时长 | 1.33分钟 字数统计 | 2129.6字符 主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料 『NodeJS环境问题:Error spawn cmd ENOENT at Process...』 编写人 | SCscHero 编写时间 | 2021/12/31 PM11: 阅读全文

posted @ 2021-08-11 01:43 SCscHero 阅读(790) 评论(0) 推荐(0)

.Net·发布过程中报:在应用程序之外使用注册为allowDefinition='MachineTOApplication'的节是错误...
摘要:阅文时长 | 0.08分钟 字数统计 | 139.2字符 主要内容 | 1、引言&背景 2、声明与参考资料 『.Net·发布过程中报:在应用程序之外使用注册为allowDefinition='MachineTOApplication'的节是错误...』 编写人 | SCscHero 编写时间 | 2 阅读全文

posted @ 2021-08-02 23:53 SCscHero 阅读(1068) 评论(0) 推荐(0)

导航