1887 热度

.NET 5 Source Generators Jump Start

You may have heard about a new feature in .NET 5 called Source Generators. Developers can now generate dynamic code at compile time that .NET will weave into a consuming assembly. The possibilities are endless and will most likely have a profound impact on how we write applications and, ultimately, the performance we can expect from our apps.

收录时间: 2021-01-27
分类: .NET 5
贡献者: Rector
1587 热度

.NET 5: How to enable .NET 5 runtime on console apps instead of .NET Core 3.1 ?

You may have noticed it already, but when you create a console application with Visual Studio 2019, the default runtime is not .NET 5 but .NET Core 3.1! Why ? Because .NET 5 is not LTS and therefore Microsoft has intentionally chosen to offer the latest LTS version of .NET by default, ie .NET Core 3.1. In this article I show you how to select .NET 5 instead of .NET Core 3.1 without having to create a console application in .NET Core 3.1 and then change its runtime in the project properties afterwards.

收录时间: 2021-01-26
分类: .NET 5
贡献者: Rector
2684 热度

.NET 5重大变更之WPF和Windows Forms

.NET 5 重大变更系列的最后一个主题是 WPF 和 Windows Forms。这些桌面技术在.NET Core 3.0 之前是不可用的,因为.NET Core 的早期版本主要专注于基于 Web 的应用程序(ASP.NET Core)。2002 年.NET 首次发布时,Windows Forms(非正式地被称为 WinForms)是最早的应用程序框架之一。(其他框架包括 WebForms、Console 和 Windows Services。)WinForms 深受 Visual Basic 的影响,和 VB 一样,它对原生 Windows 控件进行了一层薄薄的包装。默认情况下,这提供了非常好的性能,但定制能力相当有限。一般来说,开发人员应该允许操作系统处理样式等方面的东西。

收录时间: 2021-01-23
分类: .NET 5
贡献者: Rector
1469 热度

Logging to DataDog with Serliog and .Net 5

This is a quick post to showing how to setup a .Net 5 Web Api application with logging to DataDog from your local computer.

收录时间: 2021-01-14
分类: .NET 5
贡献者: Rector
1724 热度

Diagnostics improvements in .NET 5

Building upon the diagnostics improvements we introduced in .NET Core 3.0, we’ve been hard at work further improving this space. I’m excited to introduce the next wave of diagnostics improvements.

收录时间: 2021-01-14
分类: .NET 5
贡献者: Rector
1619 热度

Debugging Dependency Injection Service Registrations in .NET 5.0

Dependency Injection is everywhere in modern development. It won't solve all your problems and there is a time and place to use it. However if you are working in .NET 5.0 and ASP.NET 5.0 then using it makes life a lot smoother. At times you may come across unusual functionality and wonder why. This is one way to help diagnose the issue.

收录时间: 2021-01-13
分类: .NET 5
贡献者: Rector
AD 友情赞助
1447 热度

.NET 5 Networking Improvements

With .NET 5 released in November, it’s a good time to talk about some of the many improvements in the networking stack. This includes improvements around HTTP, Sockets, networking-related security, and other networking primitives. In this post, I will highlight some of the more impactful and interesting changes in the release.

收录时间: 2021-01-12
分类: .NET 5
贡献者: Rector
1906 热度

2021年,推荐你使用.NET 5的7大原因

在.NET Core的早期版本中,每个版本都发布了重要的性能改进,从.NET Core 2.0到.NET Core 2.1到.NET Core 3.0的每一次版本升级,都有着大量的性能优化和提升,而随着大一统的.NET 5的发布,我发现.NET 5实现了更多的性能改进,鉴于微软的努力,使得.NET生态在国内也得到了长足的发展,而现在的你们,有否计划转入.NET5的怀抱?下面是我的感受,再给你烧把火,尽快投入.NET 5的怀抱来吧。

收录时间: 2021-01-11
分类: .NET 5
贡献者: Rector
1959 热度

.Net 5中Windows Forms运行时的新功能(翻译)

本文翻译自Igor的文章,原文地址:https://devblogs.microsoft.com/dotnet/whats-new-in-windows-forms-runtime-in-net-5-0/#listview-enhancements。自从2018年底 Windows Forms开源并移植到.net core之后,内外部的开发团队就忙于修复旧的bug和增加新的特性。本文将讨论一下.NET5.0中Windows Forms运行时的新增功能。新增和加强的Windows控件...

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

.NET 5 Source Generators - MediatR - CQRS - OMG!

In this blog post we will explore how we can use the new source generator feature in .NET 5 to automatically generate an API for a system using the MediatR library and the CQRS pattern.

收录时间: 2020-12-30
分类: .NET 5
贡献者: Rector
1844 热度

.NET 5 源代码生成器——MediatR——CQRS

在这篇文章中,我们将探索如何使用.NET 5中的新source generator特性,使用MediatR库和CQRS模式自动为系统生成API。中介者模式中介模式是在应用程序中解耦模块的一种方式。在基于web的应用程序中,它通常用于将前端与业务逻辑的解耦。在.NET平台上,MediatR库是该模式最流行的实现之一。如下图所示,中介器充当所发送命令的发送方和接收方之间的中间人。发送者不知道也不关心谁在处理命令。使用MediatR,我们定义了一个command,它实现IRequest接口,其中T表示返回类型。在这个例子中,我们有一个CreateUser类,它将返回一个字符串给调用者...

收录时间: 2020-12-30
分类: .NET 5
贡献者: Rector
1901 热度

.NET/.NET Core中使用EPPlus导出自定义列标题、忽略列、列排序的静态扩展方法

EPPlus是一个.NET/.NET Core中操作Excel表格数据的第三方组件。使用EPPlus你可以在不依赖其它第三方组件的情况下完成对Excel的导入、导出等操作,而且步骤非常简单。相信不少.NET玩家已经体验过EPPlus带来的便捷和高效,所以本文就不再为大家分享EPPlus的具体使用方法(如何使用EPPlus请参考[《C#/.NET使用EPPlus组件导出数据到EXCEL表格并下载到本地的示例》][1]),而是介绍一个为EPPlus定制自定义导出列标题、忽略列以及列排序的静态扩展方法。

收录时间: 2020-12-28
分类: .NET 5
贡献者: Rector
1914 热度

What is New in .NET 5

.NET 5.0 was officially released this week, bringing with it a range of improvements to the .NET ecosystem. Like many .NET developers, I was quick to download it and give it a test run. This article discusses some of the most exciting new features in .NET 5.

收录时间: 2020-12-21
分类: .NET 5
贡献者: Rector
2007 热度

What's new in Windows Forms runtime in .NET 5.0

Since Windows Forms was open sourced in late 2018, and ported to .NET Core, both the team and our external contributors have been busy fixing old bugs and adding new features. In this post we are going to talk about what’s new in Windows Forms runtime in .NET 5.0.

收录时间: 2020-12-11
分类: .NET 5
贡献者: Rector
1737 热度

ASP.NET Core Improvements in .NET 5

At the .NET Conf 2020 in November, Microsoft released the .NET 5 platform. This release's massive investment focuses primarily on improving the entire platform’s overall performance, followed by a broad set of new features in ASP.NET Core, mainly related to Blazor, SignalR, and Web API. Meanwhile, ASP.NET MVC adds support to more model binding types and a new library, the Microsoft.Web.Identity, which simplifies the Azure Active Directory authentication integration.

收录时间: 2020-12-03
分类: .NET 5
贡献者: Rector
AD 友情赞助
1595 热度

Uno Platform Webcast: What’s new with Uno Platform, .NET 5 and WinUI 3 Preview 3

On December 17th we will hold our first office-hours-style webinar to tell you all about our support for .NET 5 and WinUI 3 Preview 3. Register now. Adding support for .NET 5 in Uno Platform creates multiple opportunities to improve performance and reduce solution complexity. With .NET 5, we can better target traditional Microsoft Windows targets, but also WebAssembly, Linux, macOS, iOS and Android.

收录时间: 2020-11-26
分类: .NET 5
贡献者: Rector
2101 热度

如何给 CI CD 服务器搭建上 .NET 5 构建和运行环境

在 2020.11.10 官方正式发布了 .NET 5 正式版。而我花了一周的时间进行踩坑和预研,本文将告诉大家如何在自动化服务器上搭建 dotnet 5 的构建和运行环境。在上一篇博客里面,我因为 NuGet 版本的问题,不得在 2020.11.13 回滚了 CI 服务器。但是刚好就在那天,大法更新了 NuGet 到 5.8 的版本。按照我一个小伙伴的说法,全网首个支持 .NET 5 的 NuGet 已正式发布

收录时间: 2020-11-20
分类: .NET 5
贡献者: Rector
1861 热度

使用 .NET 5 体验大数据和机器学习

.NET 5 旨在提供统一的运行时和框架,使其在各平台都有统一的运行时行为和开发体验。微软发布了与 .NET 协作的大数据(.NET for Spark)和机器学习(ML.NET)工具,这些工具共同提供了富有成效的端到端体验。在本文中,我们将介绍 .NET for Spark、大数据、ML.NET 和机器学习的基础知识,我们将研究其 API 和功能,向你展示如何开始构建和消费你自己的 Spark 作业和 ML.NET 模型。翻译:精致码农-王亮原文:http://dwz.win/XnM.NET 5 旨在提供统一的运行时和框架,使其在各平台都有统一的运行时行为和开发体验。微软发布了与 .NET ...

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

Announcing .NET 5.0

We’re excited to release .NET 5.0 today and for you to start using it. It’s a major release — including C# 9 and F# 5 — with a broad set of new features and compelling improvements. It’s already in active use by teams at Microsoft and other companies, in production and for performance testing. Those teams are showing us great results that demonstrate performance gains and/or opportunities to reduce hosting costs for their web applications. We’ve been running our own website on 5.0 starting with Preview 1. From what we’ve seen and heard so far, .NET 5.0 delivers significant value without much effort to upgrade. It’s a great choice for your next app, and a straightforward upgrade from earlier .NET Core versions. We hope you enjoy using it, on your desktop, laptop, and cloud instances.

收录时间: 2020-11-11
分类: .NET 5
贡献者: Rector
1576 热度

Announcing ASP.NET Core in .NET 5

.NET 5 is now released! .NET 5 is the next version of .NET Core and the future of the .NET platform. With .NET 5 you have everything you need to build rich, interactive front end web UI and powerful backend services. ASP.NET Core in .NET 5 is loaded with lots of great new features and improvements. Here’s a sampling...

收录时间: 2020-11-11
分类: .NET 5
贡献者: Rector
AD 友情赞助