25 热度

Remember ASP.NET Request Culture Using Middleware

In the last post, we explored a jumpstart guide to working with a user’s request culture. While localization works out of the box, there seems to be a caveat when it comes to remembering the culture a user prefers. When using the RequestLocalizationMiddleware, we have access to three default providers: Headers, Cookies, and Query String. All of these work as read-only mechanisms, and do not store/remember a user’s language for the duration of their session. In this post, we’ll see what it takes to persist someone’s culture throughout their visit and the steps required to make it work.

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

ML.NET September Updates

ML.NET is an open-source, cross-platform machine learning framework for .NET developers. It enables integrating machine learning into your .NET apps without requiring you to leave the .NET ecosystem or even have a background in ML or data science. ML.NET provides tooling (Model Builder UI in Visual Studio and the cross platform ML.NET CLI) that automatically trains custom machine learning models for you based on your scenario and data. This release of ML.NET (1.5.2) brings numerous bug fixes and enhancements, while tooling updates include the ability to train object detection models using Azure ML via Model Builder. You can now also locally train image classification models with the ML.NET CLI.

收录时间: 2020-09-26
分类: 机器学习
贡献者: Rector
26 热度

NET Core Releases and Support

While we’ve covered .NET Core releases, cadence and support policies in previous blog posts, the information has been distributed across a couple of individual posts. With the .NET 5 release just around the corner, we thought this is a good time to bring all the information together into a single post as a refresher on these topics.

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

Set up continuous integration for .NET Core with OpenShift Pipelines

Have you ever wanted to set up continuous integration (CI) for .NET Core in a cloud-native way, but you didn’t know where to start? This article provides an overview, examples, and suggestions for developers who want to get started setting up a functioning cloud-native CI system for .NET Core.

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

C# in Simple Terms - The Type System

To kick off our C# in Simple Terms mega-series, let's learn about the most fundamental concept C# has: the type system.

收录时间: 2020-09-25
分类: C#开发
贡献者: Rector
24 热度

Zero Installer, Zero MSIX, Zero Packaging with .NET Single File Apps

A feature that was added to .NET Core apps was the ability to publish as a single file. As we approach the release of .NET 5 I thought it worthwhile taking a look at the options for publishing Windows Forms and WPF applications with dotnet publish. For this post we’re going to work with a …

收录时间: 2020-09-25
分类: .NET Core
贡献者: Rector
AD 友情赞助
26 热度

Creating Real-Time Charts with Blazor WebAssembly and SignalR

In this article, we are going to learn how to use Blazor WebAssembly and SignalR with ASP.NET Core Web API application to create real-time charts. Since we already have an article on a similar topic – How to Use Signalr with .NET Core and Angular – we won’t dive deep into the SignalR explanations. Everything is explained in the mentioned article in great detail. Of course, in this article, we are going to show you all the steps to get to the final solution.

收录时间: 2020-09-25
分类: Blazor
贡献者: Rector
40 热度

几个超级实用但很少人知道的 VS 技巧[更新]

大家好,今天分享一些实用的 VS 技巧,而这些技巧我发现很多人都不知道。因为我经常在工作中遇到:我在同事电脑上解决问题,或在会议上演示代码示例时,使用了一些 VS “骚”操作,他们会好奇地问:你是怎么做到的?有时候你知道一些别人不知道的小技巧便可以让你显得更专业。

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

Windows Terminal Preview 1.4 Release

Welcome to another release of Windows Terminal Preview and Windows Terminal! Windows Terminal Preview is now on version 1.4 and will have the new features listed below. Windows Terminal has moved to version 1.3 and will have all the features from our previous preview release. You can download both of these builds from the Microsoft Store as well as from the GitHub releases page. Let’s check out what’s new!

收录时间: 2020-09-24
分类: 技术资讯
贡献者: Rector
31 热度

Automating .NET Security Updates

Every few weeks Microsoft pushes out a .NET SDK update to patch zero day security vulnerabilities. It's important to keep up to date with these to ensure that your software is protected. The problem is, keeping up to date is a manual and boring process but what if you could automate it? In this post, I'll talk through how you can get most of the way to a fully automated solution with the last hurdle requiring some of your help.

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

How to generate code using Roslyn source generators in real world scenarios

Roslyn (as of 16.8 Preview 3) now brings first-class support for source code generators that run as part of a project compilation. The provided cookbook is a fantastic resource to get to know the capabilities and some specific scenarios this feature was created for. The carefully chosen set of features, driven by concrete scenarios, make for a powerful and flexible toolset to supercharge your nuget packages with. In this blog post I’ll outline how I’m using it, in light of my first real-world use case: ThisAssembly.

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

New Features in Visual Studio 2019 v16.8 Preview 3.1

In conjunction with Ignite 2020, we are releasing Visual Studio 2019 v16.8 Preview 3.1. Our events always bring an excitement to our team as we launch new functionality to our product. In this release, we are giving you access to improvements in Git Integration, C++20 conformance, .NET Productivity, Web Tools, and XAML . We can’t wait to hear how these features impact your work for the better. Equally, we love to hear how we can strive for constant improvement through our Developer Community.

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

ASP.NET Core Localization Jump Start

Language is a core component of the human condition. According to the Washington Post, at least 50% of the world’s population is bilingual. That’s a fantastic statistic, that means every second user to our application could be bilingual. Sadly, most app implementations do not support multiple languages and could be missing serving an audience. In this post, we’ll be covering the quick steps necessary to localize an ASP.NET Core application to target multiple cultures.

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

.NET 5 中 Target Framework 详解

我们希望极大地简化开发人员必须在项目文件和 NuGet 包中使用的TFM (Target Framework Name, 目标框架名称)。这包括合并 .NET 5 和 .NET Standard 的概念,同时仍然可以使用 #if 来编写特定于操作系统的代码。本文解释了开发的动机和由此产生的开发者体验。

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

C# 9.0 新特性预览

随着 .NET 5 发布日期的日益临近,其对应的 C# 新版本已确定为 C# 9.0,其中新增加的特性(或语法糖)也已基本锁定,本系列文章将向大家展示它们。

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

ASP.NET Core 3.x启动时运行异步任务(二)

前一篇文章,我们从应用启动时异步运行任务开始,说到了必要性,也说到了几种解决方法,及各自的优缺点。最后,还提出了一个比较合理的解决方法:通过在Program.cs里加入代码,来实现IWebHost启动前运行异步任务。

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

ASP.NET Web API 2系列(四):基于JWT的token身份认证方案

通过前边的系列教程,我们可以掌握WebAPI的初步运用,但是此时的API接口任何人都可以访问,这显然不是我们想要的,这时就需要控制对它的访问,也就是WebAPI的权限验证。验证方式非常多,本文就重点介绍一种常用的验证方式:基于JWT的token身份认证方案。

收录时间: 2020-09-23
分类: ASP.NET
贡献者: Rector
27 热度

Wrapping JavaScript libraries in Blazor WebAssembly/WASM

Blazor WebAssembly is one of the newest front-end frameworks on the block. It enables you to write frontend in C# and makes it possible to use many of the .NET libraries that you already know. Most websites use some JavaScript libraries that make it easier to make complex animations, self-aligning components, or other dynamic interactions. People are already working on making libraries that make it easy to add complex features to your website using Blazor as well. But for now, you might still be missing a way to do that one thing that some JavaScript library does when working with Blazor. You could reimplement that feature in Blazor WebAssembly from the ground up, but that might be a lot of work. In this article, we will show how you can wrap a JavaScript library in Blazor and thereby getting that one feature into Blazor WebAssembly.

收录时间: 2020-09-23
分类: Blazor
贡献者: Rector
28 热度

Run EF Core Queries on SQL Server From Blazor WebAssembly

Run EF Core Queries on SQL Server From Blazor WebAssembly

收录时间: 2020-09-23
分类: Blazor
贡献者: Rector
22 热度

Learning to use Data Caching in Xamarin Forms

Howdy! Thanks for being here, hoping that you’re doing well! This time I just want to show you a very interesting and useful topic for our Xamarin Forms Applications: Data cachingImagine the following scenario: You have to confirm your latest transactions in your bank account! You will say som...

收录时间: 2020-09-23
分类: Xamarin
贡献者: Rector
AD 友情赞助