你的位置: 首页 / 资讯列表 / 分类资讯

最新.NET/.NET Core/Web开发资讯源


31 热度

How to Use Shouldly to Improve Unit Tests in .NET?

In this article, we are going to explore Shouldly. Shouldly is a library that improves the quality of our tests.

收录时间: 2022-09-27
分类: .NET
贡献者: Rector
40 热度

ASP.NET Core rate limiting middleware in .NET 7

Starting with .NET 7, ASP.NET Core includes a built-in rate limiting middleware, which can be used to rate limit web applications and APIs. In this blog post, we’ll take a look at how to configure and use the rate limiting middleware in ASP.NET Core.

收录时间: 2022-09-27
分类: .NET
贡献者: Rector
40 热度

ASP.NET Core 6: Bring your custom compression provider in gRPC

The compression of data during their transport on the Internet or a network makes it possible to gain significantly in terms of performance. If gRPC is already efficient thanks to the payloads transported in binary via HTTP/2, it is possible to improve its performance a little more. It is possible to use Gzip compression quite easily with gRPC, however if you plan to use another compression algorithm, such as Brotli, you will have to implement it yourself and that is what I will show you in this article.

收录时间: 2022-09-26
分类: ASP.NET Core
贡献者: Rector
41 热度

AutoMapper vs Mapster in .NET

In this article, we are going to compare the popular object mapping libraries AutoMapper and Mapster. Later, we’ll do a performance benchmark to find the most performant one.

收录时间: 2022-09-26
分类: .NET
贡献者: Rector
42 热度

Using Query String Parameters with Minimal APIs

In this article, we are going to explain how we can work with query string parameters in Minimal APIs in .NET 6. You may refer here for a nice introduction to the concept of Minimal APIs. Also, we will show new improvements that .NET 7 brings to the table.

收录时间: 2022-09-26
分类: ASP.NET Core
贡献者: Rector
52 热度

Using multiple JSON serialization settings in ASP.NET Core

My blog has been a bit quiet in the last 18 months or so, because, well, life happened… In that time span I became a father, changed jobs twice, and relocated to Canada with my family, so free time has been scarce. Anyway, I recently ran into a problem that I found worthy of a blog post, and I have a bit of time to write!

收录时间: 2022-09-21
分类: .NET
贡献者: Rector
AD 友情赞助
42 热度

.NET MAUI in .NET 7 Release Candidate 1

Today we are excited to announce the availability of .NET Multi-platform App UI (MAUI) in .NET 7 release candidate 1 (RC1) with the release of Visual Studio 17.4 Preview 2.1. This includes the foundational SDKs .NET for Android, iOS, Mac Catalyst, and macOS. With the Tizen workload installed, the same code also runs on numerous Samsung devices including phones, televisions, appliances, and wearables.

收录时间: 2022-09-21
分类: .NET
贡献者: Rector
48 热度

What is NullReferenceException in C#?

In C#, a NullReferenceException occurs when we try to access a variable whose value has not been set or has been set to null. It can be easy to trigger this exception accidentally, so it’s important to be aware of how to avoid it in the first place. In this article, we’ll take a look at some common causes of NullReferenceException errors and how to fix them. We’ll also discuss ways to prevent NullReferenceException errors from happening in the first place.

收录时间: 2022-09-21
分类: C#
贡献者: Rector
48 热度

.NET Framework September 2022 Cumulative Update Preview

Today, we are releasing the September 2022 Cumulative Update Preview for .NET Framework. This release contains the following quality and reliability improvements...

收录时间: 2022-09-21
分类: .NET
贡献者: Rector
48 热度

FileSystemWatcher in C#

.NET provides a handy way to deal with monitoring different file system changes. In this article, we will discuss what FileSystemWatcher is, how to set it up, and how to configure it to observe various file system changes. In addition, we will take a look at the caveats of FileSystemWatcher.

收录时间: 2022-09-21
分类: C#
贡献者: Rector
60 热度

Visual Studio 2022 17.4 Preview 2

We have released Visual Studio 2022 17.4 Preview 2. In this post we’ll share details about features added since Preview 1. Feedback from developers like you during our preview cycle is so important for us to deliver a final product that meets your high expectations.

收录时间: 2022-09-15
分类: Visual Studio
贡献者: Rector
61 热度

ASP.NET Core updates in .NET 7 Release Candidate 1

.NET 7 Release Candidate 1 (RC1) is now available and includes many great new improvements to ASP.NET Core.

收录时间: 2022-09-15
分类: .NET
贡献者: Rector
53 热度

Indexers in C#

In this article, we are going to learn about Indexers in C#, how to declare them in a class, struct, or interface, and overload them. We’re also going to learn what the differences between indexers and properties are.

收录时间: 2022-09-15
分类: C#
贡献者: Rector
61 热度

Announcing Entity Framework 7 Release Candidate 1

ntity Framework Core 7 (EF7) Release Candidate 1 has shipped! The team focused on addressing defects, minor enhancements, and putting the finishing touches on features. See the full list of EF7 RC1 changes on GitHub. For a detailed look at what’s new in EF7, with working samples, check out our newly updated What’s New in EF7 documentation.

收录时间: 2022-09-15
分类: EF Core
贡献者: Rector
53 热度

Where should you use gRPC? And where NOT!

I’ve recently read a few blogs and watched videos that compare gRPC with REST and GraphQL. It seemed like the majority claimed that gRPC is the standard for communication between services without giving any real reason. I think it would be better served to explain where and the situations where gRPC could be useful and where I’d avoid using it.

收录时间: 2022-09-15
分类: gRPC
贡献者: Rector
AD 友情赞助
62 热度

Return File in ASP.NET Core Web API

In this article, we are going to learn how to return a file in an ASP.NET Core Web API and some concepts behind it. That said, we are going to implement a simple Web API to read a local file and return this file to download.

收录时间: 2022-09-14
分类: ASP.NET Core
贡献者: Rector
64 热度

.NET September 2022 Updates – .NET 6.0.9 and .NET Core 3.1.29

Today, we are releasing the .NET September 2022 Updates. These updates contain security and non-security improvements. Your app may be vulnerable if you have not deployed a recent .NET update. You can download 6.0.9 and 3.1.29 versions for Windows, macOS, and Linux, for x86, x64, Arm32, and Arm64.

收录时间: 2022-09-14
分类: .NET
贡献者: Rector
56 热度

.NET Framework September 2022 Security and Quality Rollup

Today, we are releasing the September 2022 Security and Quality Rollup for .NET Framework.Security: .NET Framework Remote Code Execution Vulnerability. This security update addresses an issue where an attacker could convince a local user to open a specially crafted file which could execute malicious code on an affected system...

收录时间: 2022-09-14
分类: .NET
贡献者: Rector
72 热度

Improving Unit Tests with Fluent Assertions

Unit tests are usually a must-have part of building and maintaining a software application. Fluent Assertions is a wonderful library of extension methods. Due to the nature of the library, the code reads like a written sentence. In this article, we will review many methods Fluent Assertions offers as well as its unique features.

收录时间: 2022-09-14
分类: .NET
贡献者: Rector
53 热度

MvvmCross 9.0.0

It has been a little while since the last MvvmCross release, but here is a bit one. Today we announce MvvmCross 9.0.0! This version of MvvmCross is now only targeting .NET 6.0 all old target frameworks have been removed. This improves quality of life significantly when working on MvvmCross, and lessens the amount of targets we have.

收录时间: 2022-09-14
分类: .NET
贡献者: Rector
AD 友情赞助