为了提高项目代码质量,所以往往会安装分析器。 但是呢,这些分析器在生成项目程序文件时,占了 10MB。这些 dll 用不上的,没必要留着占空间。 可以使用 VS 自带的属性管理器去除 也可以手动 打开项目 .csproj 文件,找到如下的两个节点 <PropertyGroup C[......]继续阅读
为了提高项目代码质量,所以往往会安装分析器。 但是呢,这些分析器在生成项目程序文件时,占了 10MB。这些 dll 用不上的,没必要留着占空间。 可以使用 VS 自带的属性管理器去除 也可以手动 打开项目 .csproj 文件,找到如下的两个节点 <PropertyGroup C[......]继续阅读
To improve project code quality, analyzers are often installed. However, these analyzers occupy 10MB when generating project program files. Since the[......] 继续阅读
分析器名为 miniprofiler,官网地址为 https://miniprofiler.com/dotnet/ 可以直接放到代码中,发布后运行测试。 支持以下框架的性能分析: ASP.NET ASP.NET Core Console .NET Console .NET Core EF6 EF[......] 继续阅读
The analyzer is named miniprofiler, and the official website is https://miniprofiler.com/dotnet/. It can be directly integrated into the code and run[......] 继续阅读
RuntimeInformation and Environment Fetching Information Reflection to Fetch Information Fetching Property Values Reflection to Fetch Attribute Value[......] 继续阅读
RuntimeInformation、Environment 获取信息 反射获取信息 获取属性值 反射获取特性值 获取某个属性的值以及别名 反射获取信息 使用 总结 [......] 继续阅读
背景: When debugging tests, it's necessary to use NSwag.AspNetCore to provide swagger services, but it's not needed for formal release deployment. The N[......] 继续阅读
背景: 调试测试 Debug 时需要使用 NSwag.AspNetCore ,提供 swagger 服务,但是正式发布部署,不需要用到。 NSwag.AspNetCore 的库文件达到6MB。 可以在项目文件中使用如下条件 Condition="'$(Configuration)[......] 继续阅读
.NET Core 中没有获取 Linux 的 CPU使用率等信息的功能,死心吧。 static void Main(string[] args) { Console.WriteLine("系统运行情况");[......]继续阅读
.NET Core does not have the functionality to obtain CPU usage and other information on Linux, so don't hold your breath. static void Main(stri[......]继续阅读
[ASP.NET Core 从入门到精通-资源收集导航]() 目录 ASP.NET Core 从入门到精通-资源收集导航 学习路线 学习路线资源导航大全 1,介绍 2,入门 3,教程 4,基础知识 5,Razor页面 6,MVC 7,Web API 8,授权认证 9,安全性 10,测试、调试、API[......] 继续阅读
ASP.NET Core Getting Started to Mastery - Resource Collection Navigation Table of Contents ASP.NET Core Getting Started to Mastery - Resource Collect[......] 继续阅读
.NET Core Method for Obtaining Database Context Instance and Configuring Connection Strings [TOC] Assuming the database has two tables: User and Blogs[......] 继续阅读
.NET Core 获取数据库上下文实例的方法和配置连接字符串 [TOC] 假设数据库就两个表:User、Blogs, 模型类如下 public class User { public int Id { get; set; } public strin[......]继续阅读
Developing .NET Core on Deepin using Rider [TOC] The domestic Deepin is quite good; I’d recommend it. I've used Deepin for a year or two just for casu[......] 继续阅读
Deepin 下 使用 Rider 开发 .NET Core [TOC] 国产的 Deepin 不错,安利一下。 Deepin 用了也有一两年,也只是玩玩,没用在开发上面。后来 Win10 不太清真了,就想着能不能到 Deepin下撸码。要搞开发,首先少不了 IDE,VS2019 用不[......] 继续阅读
Support for .NET Core on Loongson and Thoughts on Developing Embedded Systems with .NET Core [TOC] 1. Regrettable Attempt Not long ago, I came across[......] 继续阅读
.NET Core 对龙芯的支持情况和对 .NET Core 开发嵌入式的思考 [TOC] 一,遗憾的尝试 前些天看到了张队公众推送的《Asp.Net终于可以在龙芯服务器上运行啦:Jexus成功完成对国产系列CPU的适配》,联想到上一周与朋友在龙芯捣鼓 .NET Core,就想写一下关于 .NET[......] 继续阅读
[TOC] Description ASP.NET Core 3.0 is a lightweight JWT role/user authentication library controlled by a single API. Recently, I had some spare time t[......] 继续阅读
[TOC] 说明 ASP.NET Core 3.0 一个 jwt 的轻量角色/用户、单个API控制的授权认证库 最近得空,重新做一个角色授权库,而之前做了一个角色授权库,是利用微软的默认接口做的,查阅了很多文档,因为理解不够,所以最终做出了有问题。 之前的旧版本 https://gi[......] 继续阅读