dotNET Weekly
Add a link
LoginRegister
PrevJanuary 2021Next
WSMTWTFS
53272829303112
23456789
310111213141516
417181920212223
524252627282930
631123456

Want to receive every Tuesday the best .NET links?

Once subscribed you can login, submit a link and receive the weekly newsletter.

Join more than 4847 .NET professionals!

5 ways to save costs by running .NET apps on Azure

by bill-s, 2021-01-22T06:42:20.455Z

Digital transformation is accelerating at an incredible rate for consumers and employees alike, and the way we live and work has drastically changed. As a result, digital demand is surging, often past the capacity of existing infrastructure due to online demand for goods, services, and information. Businesses are shifting overnight from a physical first approach, to a digital first model putting strain on legacy web apps—both internal and external.

azure

ASP.NET Core Unit Testing with FluentAssertions

by bill-s, 2021-01-20T00:17:00.833Z

Writing and releasing a bug-free software product is a goal of every software developer and one of the tools to achieve this goal is unit testing. Unfortunately, the unit test coverage is not very high in many software projects and the main reason for this low coverage is that many developers think that they are either too busy in writing business logics and can’t give enough time to unit tests or they complain that most of the time unit tests written by other developers are not easy to read. Luckily, we have a library called FluentAssertions that makes our unit test look like the sentences written in plain English which are very easy to write and read by developers. In this tutorial, I will cover different features available in the FluentAssertions library so that you can also develop robust and bug-free software.

testing

Create and deploy a cloud-native ASP.NET Core microservice

by bill-s, 2021-01-22T06:49:34.805Z

In this module, you will: Examine existing ASP.NET Core microservices running in Azure Kubernetes Service (AKS). Implement a new ASP.NET Core microservice and containerize it. Publish the Docker image to Azure Container Registry (ACR). Deploy the Docker container to the existing AKS cluster.

asp.net-core

Create MVC App With Google Authentication (and Identity)

by bill-s, 2021-01-22T06:54:12.027Z

This video shows you how to Authenticate an MVC app with Google in DotNet5. It shows you how to build this app from scratch using the command line and delves into the google interface briefly all the way through logging in after running the app.

.net

Deep Dive into Open Telemetry for .NET

by bill-s, 2021-01-22T06:39:51.037Z

Open Telemetry is an open source specification, tools and SDK's used to instrument, generate, collect, and export telemetry data (metrics, logs, and traces). Open Telemetry is backed by the Cloud Native Computing Foundation (CNCF) which backs a mind boggling array of popular open source projects. It's worth looking at the CNCF Landscape to see what I really mean. The SDK's support all the major programming languages including C# and ASP.NET Core.

.net

Design Patterns Explained with Food

by bill-s, 2021-01-22T06:40:27.696Z

GOF Design Patterns in C# with working examples inspired by food This repository was made as a way to demonstrate and learn using moderately realistic examples of the Gang of Four Design Patterns (Design Patterns - Elements of Reusable Object-Oriented Software) by Gamma, Helm, Johnson, and Vlissides. A YouTube series is in progress covering the details of each project. It starts here: https://www.youtube.com/watch?v=C_6uQwBjsmk

.net

Figuring out Stages in YAML pipelines

by miguelbernard, 2021-01-19T22:55:44.316Z

Stages are an essential part of a successful CI/CD pipeline. Discover how to use them and get the most value with Azure DevOps

.net-coreazuremsbuildtools

Github Actions for Visual Studio Extension developers

by cezarypiatek, 2021-01-22T12:58:33.843Z

How to completely automate continuous integration and release management of visual studio extensions.

.net-core

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

by anthonygiretti, 2021-01-22T22:27:02.210Z

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.

.net

gRPC & ASP.NET Core 5: Add a gRPC service reference from a remote protobuf over Route-To-Code

by anthonygiretti, 2021-01-22T04:29:15.790Z

A while ago, I published a post that explained how to expose proto files within an ASP.NET Core gRPC app using Route-To-Code that you can find here: Exposing proto files in a gRPC service over a frameworkless and lightweight API – Anthony Giretti’s .NET blog I only explained how to expose them and access them from a browser. But I haven’t explained how to download them from “Services References” menu in Visual Studio 2019, and I should have because there is a trick.

asp.net-core

How to fix Blazor WASM base path problems

by ThomasArdal, 2021-01-19T12:17:59.020Z

This post will show you how to fix a common problem when setting the application base path with Blazor WebAssembly.

.net-coreasp.net-coreblazor

.NET 5 Networking Improvements

by bill-s, 2021-01-22T06:42:45.161Z

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.

.net

.NET Conf

by bill-s, 2021-01-22T06:46:34.944Z

.NET Conf: Focus on Windows is a free, one-day livestream event that features speakers from the community and Microsoft teams working on Windows desktop apps and making them fantastic on the latest .NET 5. Learn why and how to upgrade WPF and Windows Forms apps to .NET 5, see Visual Studio tooling improvements, learn how to leverage cloud services from your client apps, and a whole lot more. You'll also see what the future of native device development with .NET will look like in .NET 6.

.net

New release of Calzolari.Grpc.AspNetCore.Validation package !

by anthonygiretti, 2021-01-22T04:00:14.776Z

New release of Calzolari.Grpc.AspNetCore.Validation package ! It supports now validation on streamed messages + some bugfixes. Latest .NET 5 package: 5.1.0 Latest .NET Core 3.1 package: 3.3.0

.net.net-core

Permission-Based Authorization in ASP.NET Core – Complete User Management Guide in .NET 5

by iammukeshm, 2021-01-22T12:54:40.026Z

Let's implement Permission-Based Authorization in ASP.NET Core (.NET 5) + Source Code Included! Setting up Permissions to access your resources is always a crucial part of your application’s security. In this article, we will implement Permission-Based Authorization in ASP.NET Core that builds upon the concept of Claim-Based Authorization in ASP.NET Core. As usual, we will be building this application right from scratch to get some detailed knowledge about the whole scenario and how it would actually help you secure your projects. Topics Covered: 1. What’s Role-Based Authorization? It's Limitation. 2. Permission-Based Authorization in ASP.NET Core 3. List of all Registered Users 4. Manage User Roles 5. Add New Roles 6. Manage Permissions – UI 7. Getting Started with Permission-Based Authorization 8. Pre-Defined Roles 9. Seeding Users and Roles 10. Displaying a List of Registered Users 11. Role Management UI 12. Roles-Permission Management UI 13. Claims Helper 14. Permission Requirement 15. Authorization Handler 16. Permission Policy Provider 17. Registering the Services Essentially you get to build a Complete User Management System in .NET 5 Read More - https://codewithmukesh.com/blog/permission-based-authorization-in-aspnet-core/

asp.net-core

🧩 Using C# Extension Methods for Auth0 Authentication

by robertinoc, 2021-01-19T12:54:44.273Z

📚 How to use C# extension methods to simplify Auth0 configuration for ASP.NET web applications.

c#

NewslettersAboutPrivacy Policy