36 热度

Hot Reload for .NET Developers

Hey, there! This time we will have the opportunity to learn about one of the most anticipated features for .NET developers: Hot Reload. What is Hot Reload? Hot Reload allows us to modify the source code of our application while it is running and visualize these changes in real time without the need to restart execution.

收录时间: 2021-06-16
分类: .NET
贡献者: Rector
53 热度

.NET June 2021 Updates – 5.0.7 and 3.1.16

Today, we are releasing the .NET June 2021 Updates. These updates contains reliability and security improvements. See the individual release notes for details on updated packages. You can download 5.0.7 , 3.1.16 versions for Windows, macOS, and Linux, for x86, x64, Arm32, and Arm64.

收录时间: 2021-06-09
分类: .NET
贡献者: Rector
51 热度

CAP 5.1 版本发布通告 - 你期待的 Redis 来了

今天,我们很高兴宣布 CAP 发布 5.1 版本正式版,在这个版本里我们同样引入了更多令人激动的新特性和改进,同时也得到越来越多人的喜爱。得益于社区的反馈和贡献者的支持,在过去的两个月里,我们NuGet的下载量增加了20万,贡献者团队达到了57人,同时我们也发现了非常多的国外贡献者的参与,这说明 CAP 在海外的用户也正在迅速增长,在此我表示非常的感谢。在 5.1 版本中,我们带来了大家期待已久的 Filter 功能,以及对 Redis Streams 的支持,同时我们重写了 Dashboard,下面我们就具体来看一下吧。总览可能有些人还不知道 CAP 是什么,老规矩来一个简介。CAP是一...

收录时间: 2021-06-08
分类: .NET
贡献者: Rector
50 热度

Nulls in Value Objects

Today, we’ll discuss an interesting use case of handling nulls in value objects. Should you put null inside the value objects themselves or decorate those value objects using the nullable reference type notation (? or Maybe)?

收录时间: 2021-06-04
分类: .NET
贡献者: Rector
48 热度

Conversation about the .NET type system

The .NET or Common Language Runtime (CLR) type system is the foundation of the .NET programming model. We often talk about System.Object being the base of the type system, but it’s really the base of all (reference) types. The type system is (at least) one step lower than that. It defines that both reference and value types exist, that strings are immutable, that single-inheritence is allowed and multiple-inheritence is not, and that generics are a runtime concept. On the other hand, it doesn’t define concepts like IEnumerable, IDisposable, or Task, but it enables those Ts to exist. You can quickly see that the type system is one of the most pervasive concepts in .NET.

收录时间: 2021-06-04
分类: .NET
贡献者: Rector
53 热度

Benchmarking 4 reflection methods for calling a constructor in .NET

The typical way to create an object in .NET/C# is to use the new keyword. However it's also possible to create a new instance of an object using reflection. In this post I compare 4 different methods, and benchmark them to see which is fastest.

收录时间: 2021-06-02
分类: .NET
贡献者: Rector
AD 友情赞助
45 热度

Conversation about .NET interop

Interop is the subsystem in the runtime that enables interoperability with other systems, like native C libraries or Objective-C. In some cases, it includes a full interop implementation like via P/Invoke or COM interop. In other cases, like for WinRT, it provides the building block APIs such that another (external) component can provide an end-to-end implementation.

收录时间: 2021-06-02
分类: .NET
贡献者: Rector
49 热度

编译并体验 .NET MAUI 官方示例代码

在微软的 Build 2021 大会上,微软发布了 .NET 6 Preview 4,同时发布了于它的 MAUI 第四个预览版。在 MAUI 成为 Visual Studio 2022 的官方工作负载之前,成功编译并运行 MAUI 的示例程序会比较麻烦,本文旨在帮助大家完成示例程序的编译运行和体验。

收录时间: 2021-06-01
分类: .NET
贡献者: Rector
56 热度

通过Dapr实现一个简单的基于.net的微服务电商系统(十四)——开发环境容器调试小技巧

之前有很多同学提到如何做容器调试,特别是k8s环境下的容器调试,今天就讲讲我是如何调试的。大家都知道在vs自带的创建项目模板里勾选docker即可通过F5启动docker容器调试。但是对于启动在k8s则不是那么清楚。其实两者原理上是一样的。

收录时间: 2021-05-27
分类: .NET
贡献者: Rector
50 热度

Introducing the .NET Hot Reload experience for editing code at runtime

Today, we are excited to introduce you to the availability of the .NET Hot Reload experience in Visual Studio 2019 version 16.11 (Preview 1) and through the dotnet watch command-line tooling in .NET 6 (Preview 4). In the rest of this blog post, we’d like this opportunity to walk you through what is .NET Hot Reload, how you can get started using this feature, what our vision is for future planned improvements and clarity on what type of edits and languages are currently supported.

收录时间: 2021-05-26
分类: .NET
贡献者: Rector
59 热度

Running a .NET application as a service on Linux with Systemd

In this post, let’s see how you can run a .NET Core / .NET 5 application as a service on Linux. We’ll use Systemd to integrate our application with the operating system and make it possible to start and stop our service, and get logs from it. To build my supply chain attack with .NET, I needed to host a DNS server to capture the hostnames sent to me. Let’s use that as an example!

收录时间: 2021-05-26
分类: .NET
贡献者: Rector
76 热度

.Net平台的GC垃圾回收

先了解下必备的知识前提内存中的托管与非托管,可简单理解为:托管:可借助GC从内存中释放的数据对象(以下要描述的内容点)非托管:必须手工借助Dispose释放资源(实现自IDisposable)的对象 内存中有栈和堆的概念区分,仅简单说明:栈:先进后出 的特点(这里不再详细阐述)堆:存放数据对象实例的内存空间...

收录时间: 2021-05-24
分类: .NET
贡献者: Rector
116 热度

考古 dotnet 的不同版本

本文来考古一下 dotnet 发布过的版本,相信本文里面有很多个版本都是大家很少听过的。什么才能称为一个 dotnet 版本?从 .NET Framework 1.0-4.8 算多少个版本?其实我这里说的版本指的是不同的实现,我将整个 .NET Framework 算作一个版本。而将 .NET 的不同的分支,分别作为不同的版本。下面列举一下 dotnet 的不同版本...

收录时间: 2021-05-21
分类: .NET
贡献者: Rector
91 热度

.NET Framework May 2021 Security and Quality Rollup Updates

Yesterday, we released the May 2021 Security and Quality Rollup Updates for .NET Framework. Quality and ReliabilityThis release contains the following quality and reliability improvements.CLR1Addresses an issue where the entire process would be torn down when a NullReferenceException propagated out...

收录时间: 2021-05-13
分类: .NET
贡献者: Rector
72 热度

.NET May 2021 Updates – 5.0.6, 3.1.15, 2.1.28

Today, we are releasing the .NET May 2021 Updates. These updates contains reliability and security improvements. See the individual release notes for details on updated packages.You can download 5.0.6, 3.1.15, 2.1.28versions for Windows, macOS, and Linux, for x86, x64, Arm32, and Arm64.Installers an...

收录时间: 2021-05-12
分类: .NET
贡献者: Rector
AD 友情赞助
117 热度

Evolving modular monoliths: 1. An architecture for .NET

This is the first article in a series about building a .NET application using a modular monolith architecture. The aim of this architecture is to keep the simplicity of a monolith design while providing a better structure so that as your application grows it doesn’t turn into what is known as “a big ball of mud” (see the original article which describes a big ball of mud as “haphazardly structured, sprawling, sloppy, duct-tape-and-baling-wire, spaghetti-code jungle”).

收录时间: 2021-05-06
分类: .NET
贡献者: Rector
103 热度

dotnet 运行时获取某类型的对象占用内存大小

本文将告诉大家一个黑科技方法在运行时动态获取对象本身占用空间,不包括对象引用的其他对象的空间大小的方法。此方法是在开源仓库 sidristij/dotnetex: Gets size of .Net Framework objects, can change type of object to incompatible and can alloc .Net objects at unmanaged memory area 找到的方法。通过不安全代码和反射获取对象类型的 MethodTableInfo 即可在 MethodTableInfo 里面读取 Size 属性,关于 MethodTableInfo 的定义如下...

收录时间: 2021-04-28
分类: .NET
贡献者: Rector
165 热度

.NET6 平台系列1 .NET Framework发展历程

微软公司于2002年2月13日正式推出第一代.NET平台 .NET Framewrok 1.0。借助于自家强大易用的 Windows 系统,.NET Framework1.0 主要提供了面向 Windows 桌面(Windows Form)和服务器(ASP.NET Web Forms)的基础开发框架。在宇宙第一IDE(Visual Studio)中使用这两款框架进行业务系统开发,框架中都提供了功能强大的控件、组件,开发者通过可视化编程方式进行开发就非常容易上手,而且开发速度非常快,因此.NET平台深受全世界开发者的喜爱,发展一路顺风顺水。

收录时间: 2021-04-23
分类: .NET
贡献者: Rector
113 热度

Introducing the WinUI 2.6 Pager Controls

In this article we walk through a UWP app that demonstrates two new pagination controls that ship with the upcoming WinUI 2.6. The Windows UI 2.x Library is a project that’s factoring out the XAML UWP controls from the operating system into a NuGet package. New XAML controls and styles as well as backward compatible updates on existing native controls are rolled out via WinUI 2. This happens at a much higher pace than with the Windows 10 SDKs. WinUI 2 is allowing UWP developers to build and deploy apps that behave better on target platforms with different Windows 10 versions.

收录时间: 2021-04-23
分类: .NET
贡献者: Rector
143 热度

What’s new in dotnet monitor

We’ve previously introduced dotnet monitor as an experimental tool to access diagnostics information in a dotnet process. We’re now pleased to announce dotnet monitor has graduated to a supported tool in the .NET ecosystem. dotnet monitor will be fully supported beginning with our first stable release later this year.

收录时间: 2021-04-22
分类: .NET
贡献者: Rector
AD 友情赞助