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

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


登录专享特权: 登录后点击链接可直接跳转到原文地址。

14 热度

Comparing .NET Mocking Libraries

There are quite a few different mocking libraries in .NET. Moq and NSubstitute seem to be by far the main ones I hear that developers use. I've used both of these in different projects, and really like them both. Whilst my preference leans towards NSubstitute, I'd be happy using either. Out of interest, I posted a Twitter poll to see what other people preferred, and the results and replies were really interesting!...

收录时间: 2020-09-22
分类: .NET
贡献者: Rector
12 热度

PEM Loading in .NET Core and .NET 5

PEM is a file format that typically contains a certificate or private/public keys. PEM files have had patchy support in Windows and .NET but are the norm for other platforms. However, starting with .NET 5, .NET now has out of the box support for parsing certificates and keys from PEM files. This article will show you how to manually load a PEM file in .NET Core 3.1 (the old way) and how to do the same using the new .NET 5 APIs. You’ll also see how to use PEM certificates for Kestrel TLS.

收录时间: 2020-09-22
分类: .NET Core
贡献者: Rector
13 热度

Experimenting with .NET 5 Target Framework Names and the Windows platform

Firstly, if you haven’t been following the development of .NET 5 then you should definitely download the latest Visual Studio preview and .NET 5 preview SDK today. Next, you should follow the blogs from the dotnet team and specifically the post by Immo that discusses the future of .NET Standard. The post doesn’t just cover …

收录时间: 2020-09-22
分类: .NET 5
贡献者: Rector
18 热度

Top 10 .NET 5.0 new APIs - NDepend

When a new major .NET version hits Release Candidate, it is time to use the NDepend code review changes capabilities to browse which new APIs have been added. It is pretty straightforward. Start VisualNDepend.exe ; click Compare 2 versions of a code base ; then choose all assemblies in both folders...

收录时间: 2020-09-22
分类: .NET 5
贡献者: Rector
33 热度

CQRS and MediatR in ASP.NET Core

In this article, we are going to provide a brief introduction to the CQRS pattern, and how the .NET library MediatR helps us build software with this architecture.

收录时间: 2020-09-18
分类: ASP.NET Core
贡献者: Rector
42 热度

C# 9.0: Target-typed expression

In this article, we'll take a look at the new Target-typed expressions. Target-typed means that the compiler will now infer the type from the context; thus, you won't have to specify it explicitly.

收录时间: 2020-09-18
分类: C#开发
贡献者: Rector
AD 友情赞助
31 热度

.NET Framework September 2020 Cumulative Update Preview Update

Today, we are releasing the September 2020 Cumulative Update Preview Updates for .NET Framework.

收录时间: 2020-09-18
分类: .NET
贡献者: Rector
33 热度

Wrestling with Clipboard Images in WPF

Getting images from the clipboard correctly in WPF - or heck in general in Windows - is hard if you need it to be consistent and accurate. The Windows clipboard is based on ancient Windows APIs and the way many things on the clipboard are formatted by default is pure insanity. If you need a torturous example just try to use copy and paste HTML content to and from the clipboard...

收录时间: 2020-09-18
分类: WPF
贡献者: Rector
32 热度

Debug Your .NET Core Apps in WSL 2 with Visual Studio

Are you a .NET Core developer who loves working in Windows and Visual Studio, but needs to test your app in Linux? Are you a cross-platform developer that needs an easy way to test more of your target environments? Have you already discovered the benefits of WSL 2, but need a way to integrate it into your inner loop? Have I got an extension for you! The .NET Core Debugging with WSL 2 – Preview extension gives you the ability to run and debug your .NET Core apps in WSL 2 without leaving Visual Studio.

收录时间: 2020-09-18
分类: .NET Core
贡献者: Rector
48 热度

The future of .NET Standard

Since .NET 5 was announced, many of you have asked what this means for .NET Standard and whether it will still be relevant. In this post, I’m going to explain how .NET 5 improves code sharing and replaces .NET Standard. I’ll also cover the cases where you still need .NET Standard.

收录时间: 2020-09-17
分类: .NET
贡献者: Rector
47 热度

Animate A Mic Drop With Xamarin.Forms

In this post, we’ll be recreating the mic drop animation, but within a cross-platform application using Xamarin.Forms and the included animation methods. Additionally, all the work here was done within JetBrains Rider, a cross-platform IDE, and I highly recommend you check it out.

收录时间: 2020-09-17
分类: Xamarin
贡献者: Rector
34 热度

Using OpenAPI with .NET Core

In this article, we’ll look at using OpenAPI with .NET Core. OpenAPI is a specification for describing RESTful APIs. First, I’ll show you how to use OpenAPI to describe the APIs provided by an ASP.NET Core service. Then, we’ll use the API description to generate a strongly-typed client to use the web service with C#.

收录时间: 2020-09-17
分类: .NET Core
贡献者: Rector
38 热度

Don't get burned by missing await Calls for Async Code in ASP.NET Core Middleware

This post falls into the category of stupid developer mistakes that are difficult to track down. In this post I'll discuss a nasty bug I ran into with my code, and which I totally misdiagnosed at first. It refers to an intermittent failure of HTTP requests in a custom middleware component where I would get HTTP errors even though the actual response apparently was received properly.

收录时间: 2020-09-17
分类: ASP.NET Core
贡献者: Rector
47 热度

Why use MediatR? 3 reasons why and 1 reason not

The MediatR library by Jimmy Bogard has become increasingly popular over recent years, and deservedly so. By its own definition, it’s a simple, unambitious mediator implementation in .NET. Why are so many developers using it? Why should you use MediatR? Here are 3 reasons why you should at least consider using it and one reason why shouldn’t.

收录时间: 2020-09-17
分类: .NET
贡献者: Rector
33 热度

Blazor Gets Faster (Even Without AOT)

The C#-based Blazor web development framework received a performance boost with the new Release Candidate (RC) of the unifying .NET 5, scheduled for one more RC before go-live general availability next month. However, even better things are coming up next year, as the performance improvements were attained without the use of native ahead-of-time (AOT) compilation, a much-requested feature that developers won't enjoy until next year.

收录时间: 2020-09-17
分类: Blazor
贡献者: Rector
AD 友情赞助
30 热度

Announcing .NET 5.0 RC 1

Today, we are shipping .NET 5.0 Release Candidate 1 (RC1). It is a near-final release of .NET 5.0, and the first of two RCs before the official release in November. RC1 is a “go live” release; you are supported using it in production. At this point, we’re looking for reports of any remaining critical bugs that should be fixed before the final release. We need your feedback to get .NET 5.0 across the finish line.

收录时间: 2020-09-16
分类: .NET 5
贡献者: Rector
37 热度

Announcing Entity Framework Core (EFCore) 5.0 RC1

Today, the Entity Framework Core team announces the first release candidate (RC1) of EF Core 5.0. This is a feature complete release candidate of EF Core 5.0 and ships with a "go live" license. You are supported using it in production. This is a great opportunity to start using EF Core 5.0 early while there is still time to fix remaining issues. We're looking for reports of any remaining critical bugs that should be fixed before the final release.

收录时间: 2020-09-16
贡献者: Rector
37 热度

A Multitude of Updates in Visual Studio 2019 version 16.8 Preview 3

Visual Studio 2019 version 16.8 Preview 3 comes with a huge collection of updates for C++ programmers. Download today to try out new additions in conformance, performance, and productivity.

收录时间: 2020-09-16
分类: Visual Studio
贡献者: Rector
34 热度

An introduction to deploying applications with Helm: Deploying ASP.NET Core applications to Kubernetes - Part 3

In this post, I'll show one approach to deploying those resources to a Kubernetes cluster. Most tutorials on Kubernetes show how to deploy resources by passing YAML files to the the kubectl command line tool. This is fine when you're initially getting started with Kubernetes, but it's less useful when you come to deploy your apps in practice. Instead, in this post I describe Helm and discuss some of the benefits it can provide for managing and deploying your applications.

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

Hosting Vue in ASP.NET Core: A Different Take

In the several years that I've been developing and teaching Vue, I've tried a lot of different ways to make ASP.NET Core and Vue play nice with each other. One of the strategies that I've seen employed (especially with Angular and React) is the Spa Framework Extensions out of Microsoft. Because Vue didn't work out of the box (or have a template) I dismissed this approach for a long time. Now that the platform has matured and there is an open source extension for Vue, I thought I'd revisit it. Though I still think it's not exactly the right approach. Let's see why.

收录时间: 2020-09-16
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助