Microsoft

Show dotnet: Animating 40 LEDs with charlieplexing

For Pi day 2021, I published a fun post on how to Blink LEDs with Raspberry Pi. As part of that writeup, I wanted to include a 40 LED charlieplexing example, but couldn’t get it working. It is working now, and I decided to do a follow-up post to show it to you.
The post Show dotnet: Animating 40 LEDs with charlieplexing appeared first on .NET Blog.

Announcing .NET Multi-platform App UI Preview 3

With .NET 6 Preview 3 we are shipping the latest progress for mobile and desktop development with .NET Multi-platform App UI. This release adds the Windows platform with WinUI 3, improves the base application and startup builder, adds native lifecycle events,
The post Announcing .NET Multi-platform App UI Preview 3 appeared first on .NET Blog.

ASP.NET Core updates in .NET 6 Preview 3

.NET 6 Preview 3 is now available and includes many great new improvements to ASP.NET Core.

Here’s what’s new in this preview release:
Smaller SignalR, Blazor Server, and MessagePack scripts

Enable Redis profiling sessions

HTTP/3 endpoint TLS configuration

Initial .NET Hot Reload support

Razor compiler no longer produces a separate Views assembly

Shadow-copying in IIS

Vcpkg port for SignalR C++ client

Reduced memory footprint for idle TLS connections

Remove slabs from the SlabMemoryPool

BlazorWebView controls for WPF &
The post ASP.NET Core updates in .NET 6 Preview 3 appeared first on ASP.NET Blog.

Announcing .NET 6 Preview 3

Today, we are delighted to release .NET 6 Preview 3. This release is dedicated almost entirely to low-level performance features. These are the types of improvements that many folks don’t necessarily always fully appreciate, but they help a lot for many apps.
The post Announcing .NET 6 Preview 3 appeared first on .NET Blog.

ML.NET Survey: Machine Learning in .NET

Every year we conduct a survey to gather feedback on pain points and feature requests that help shape the direction of Machine Learning in .NET.

This past year we have made major improvements to ML.NET tooling and APIs, and now we’re investigating new areas to improve and grow,
The post ML.NET Survey: Machine Learning in .NET appeared first on .NET Blog.

Finding Bugs with AddressSanitizer: MSVC Compiler

Special thanks to Aaron Gorenstein for authoring this blog post.

The AddressSanitizer (ASan) is generally available for MSVC since the recently-released Visual Studio 2019 version 16.9. We’ve already shown how easy it can be to find bugs in even production-ready code like EASTL.
The post Finding Bugs with AddressSanitizer: MSVC Compiler appeared first on C++ Team Blog.

Your Top .NET Microservices Questions Answered

In our recent Let’s Learn .NET event focused on getting started with microservices we received some great questions from you. We were able to answer many questions live, but we wanted to follow up and answer some of the most popular that came up during the session.
The post Your Top .NET Microservices Questions Answered appeared first on ASP.NET Blog.

.NET April 2021 Updates – 5.0.5

Today, we are releasing the .NET April 2021 Updates. These updates contains reliability and other non-security improvements. See the individual release notes for details on updated packages.

You can download 5.0.5 versions for Windows, macOS, and Linux, for x86, x64, Arm32,
The post .NET April 2021 Updates – 5.0.5 appeared first on .NET Blog.

Sign Up for the Pure Virtual C++ 2021 Conference

Last year we ran the first Pure Virtual C++, a free one-day virtual conference for the whole C++ community. This May we’re doing it again! Sign-up for free on the website to be the first to hear about our program schedule,
The post Sign Up for the Pure Virtual C++ 2021 Conference appeared first on C++ Team Blog.

Announcing Open Source C# standardization

The C# compilers have been open source since 2014, now in the dotnet/roslyn repository. The dotnet/csharplang split off to provide a dedicate public space for the innovation and evolution of the C# language. Now, dotnet/csharpstandard completes the group, providing a public space for the ongoing work to document the standard for the latest C# language versions.
The post Announcing Open Source C# standardization appeared first on .NET Blog.

Monitoring and Observability in Cloud-Native ASP.NET Core apps

Distributed applications are complex and bring in their own set of challenges for developers to debug and fix production issues. Though the microservices architecture helps maintain a smaller team that works autonomously and focuses on separate business domains, it introduces newer challenges due to its distributed nature.
The post Monitoring and Observability in Cloud-Native ASP.NET Core apps appeared first on ASP.NET Blog.

vcpkg Host Dependencies for Cross-Compilation

If you’re not familiar with our C++ library manager vcpkg, welcome! This post covers an intermediate/advanced topic, so you may want to first get an overview and try things out from the vcpkg GitHub page or some of our previous blogs.
The post vcpkg Host Dependencies for Cross-Compilation appeared first on C++ Team Blog.

Loop alignment in .NET 6

When writing a software, developers try their best to maximize the performance they can get from the code they have baked into the product. Often, there are various tools available to the developers to find that last change they can squeeze into their code to make their software run faster.
The post Loop alignment in .NET 6 appeared first on .NET Blog.

Cloud-Native learning resources for .NET developers

Today, users are demanding responsiveness, the latest and greatest features, and zero downtime from their applications. Businesses are rapidly adopting the cloud’s power to meet user demand, increase scalability and availability of applications. However, to fully embrace the cloud and optimize cost savings,
The post Cloud-Native learning resources for .NET developers appeared first on .NET Blog.

OpenTelemetry .NET reaches v1.0

As modern application environments are polyglot, distributed, and increasingly complex, observing your application to identify and react to failures has become challenging. In early 2019, two popular instrumentation projects, OpenTracing and OpenCensus, merged to create OpenTelemetry, a new standard for observability telemetry.
The post OpenTelemetry .NET reaches v1.0 appeared first on .NET Blog.

The path to .NET 5 and Blazor WebAssembly with some fun sprinkled in

With the recent release of .NET 5 at .NET Conf 2020, users saw first-hand how to take advantage of the latest web technology using .NET. One extremely interesting announcement was the new release of Blazor WebAssembly. Blazor lets you build interactive web UI wuth C# instead of JavaScript.
The post The path to .NET 5 and Blazor WebAssembly with some fun sprinkled in appeared first on .NET Blog.

Static Analysis Fixes, Improvements, and Updates in Visual Studio 2019 16.9

The C++ static analysis team’s goal is to make your C++ coding experience as safe as possible. We are adding richer code safety checks and addressing high impact customer feedback bugs posted on the C++ Developer Community page. Thank you for engaging with us and giving us great feedback on the past releases and early previews leading to this point.
The post Static Analysis Fixes, Improvements, and Updates in Visual Studio 2019 16.9 appeared first on C++ Team Blog.

ML.NET and Model Builder March 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.

We are excited to announce new versions of ML.NET and Model Builder!
The post ML.NET and Model Builder March Updates appeared first on .NET Blog.

Investigating a Linux CVE with .NET Images

We regularly get contacted for help in managing CVEs in Linux-based .NET images. In fact, we were contacted just this morning about CVE-2021-23840 and CVE-2021-23841. I investigated the CVE for that customer to help them understand their options. It occurred to me that this information would be helpful to a broader audience.
The post Investigating a Linux CVE with .NET Images appeared first on .NET Blog.

ASP.NET Core updates in .NET 6 Preview 2

.NET 6 Preview 2 is now available and includes many great new improvements to ASP.NET Core.

Here’s what’s new in this preview release:
Razor compiler updated to use source generators

Support for custom event arguments in Blazor

CSS isolation for MVC Views and Razor Pages

Infer component generic types from ancestor components

Preserve prerendered state in Blazor apps

SignalR –
The post ASP.NET Core updates in .NET 6 Preview 2 appeared first on ASP.NET Blog.

Announcing Entity Framework Core 6.0 Preview 2

Today, the Entity Framework Core team announces the second preview release of

EF Core 6.0.

This release includes changes to handling the synchronization context when SaveChangesAsync is called, smoother integration with System.Linq.Async, updates to string concatenation and improvements to free text search.
The post Announcing Entity Framework Core 6.0 Preview 2 appeared first on .NET Blog.

Announcing .NET 6 Preview 2

Today, we are glad to release .NET 6 Preview 2. It includes new APIs, runtime performance improvements, and early builds of .NET MAUI. It also includes builds for Apple Silicon, which were missing for Preview 1. After the announcement of the overall .NET 6 release,
The post Announcing .NET 6 Preview 2 appeared first on .NET Blog.

Blinking LEDs with Raspberry Pi

The Raspberry Pi is one of the world’s most successful hardware projects. A lot of people have one, but not everyone knows what to do with it. You can use it as a desktop computer or the brain of an electronic circuit.
The post Blinking LEDs with Raspberry Pi appeared first on .NET Blog.

IntelliSense Improvements in Visual Studio 2019

We’ve made many great improvements to C++ IntelliSense over the course of the Visual Studio 2019 release. We’ve collected a few of the highlights in case you are interested in upgrading to Visual Studio 2019 or just want to learn how to be more productive when writing C++ code.
The post IntelliSense Improvements in Visual Studio 2019 appeared first on C++ Team Blog.

.NET March 2021 Updates – 5.0.4, 3.1.13, 2.1.26

Today, we are releasing the .NET March 2021 Updates. These updates contains reliability and security improvements. See the individual release notes for details on updated packages.

You can download 5.0.4 , 3.1.13, 2.1.26 versions for Windows, macOS, and Linux, for x86,
The post .NET March 2021 Updates – 5.0.4, 3.1.13, 2.1.26 appeared first on .NET Blog.

Address Sanitizer for MSVC Now Generally Available

Special thanks to Aaron Gorenstein who provided most of the content for this blog post. Special thanks as well to Kevin Cadieux and Jim Radigan who also made contributions.  

We’re thrilled to announce that as of Visual Studio 2019 version 16.9,
The post Address Sanitizer for MSVC Now Generally Available appeared first on C++ Team Blog.

Microsoft C++ Team at ACCU 2021

Sy Brand and Erika Sweet from the Microsoft C++ Team will be presenting at ACCU 2021 this week. Come say hi in the virtual conference space and let us know if you have any questions about our talks, products, or anything else. 
The post Microsoft C++ Team at ACCU 2021 appeared first on C++ Team Blog.

.NET Core 2.1 will reach End of Support on August 21, 2021

.NET Core 2.1 will be reaching end of support on August 21, 2021. After this date, Microsoft will no longer provide updates (which includes security fixes) or technical support for this version. You’ll need to update the version of .NET Core you’re using to a supported version (.NET Core 3.1 or .NET 5.0) before this date in order to continue to receive updates.
The post .NET Core 2.1 will reach End of Support on August 21, 2021 appeared first on .NET Blog.

Learn to build HTTP APIs with .NET

ASP.NET makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. Whether you’re new to .NET or an old pro, we’ve got a lot of fresh videos, tutorials, and documentation to help you learn how to build great HTTP APIs.
The post Learn to build HTTP APIs with .NET appeared first on .NET Blog.

.NET Interactive with SQL!| .NET Notebooks in Visual Studio Code

In our last post , we announced  that you can create .NET Notebooks in Visual Code. Today we are announcing that .NET Interactive now ships with T-SQL support in addition to C#, F#, PowerShell, JavaScript, and HTML.

The .NET Interactive team has collaborated with the Azure Data Studio team to bring SQL integration to .NET Notebooks.
The post .NET Interactive with SQL!| .NET Notebooks in Visual Studio Code appeared first on .NET Blog.

F# and F# tools update for Visual Studio 16.9

We’re excited to announce updates to the F# tools for Visual Studio 16.9. Since the F# 5 release last November, we’ve been hard at work to improve the F# tools experience in Visual Studio. I’ll cover the major improvements made by category:
.NET 5 scripting for Visual Studio

New productivity features for Visual Studio

Tooling performance and responsiveness improvements

Core compiler improvements
There’s a lot to cover,
The post F# and F# tools update for Visual Studio 16.9 appeared first on .NET Blog.

IntelliSense for appsettings.json

The appsettings.json file is a common way to configure .NET apps. ASP.NET Core uses appsettings.json and appsettings.${Environment}.json files to configure some of its most frequently used features, including:
Database connection strings

Kestrel endpoints

HTTPS certificates

Logging

Host filtering
Visual Studio and Visual Studio Code (with C# extension 1.23.8 or later) now support IntelliSense of well known appsettings.json configuration settings.
The post IntelliSense for appsettings.json appeared first on ASP.NET Blog.

Introducing the .NET Upgrade Assistant Preview

Today we’re excited to introduce a tool we’ve been working on to help you upgrade your .NET Framework-based applications to .NET 5 called the .NET Upgrade Assistant. The .NET Upgrade Assistant is a .NET global command-line tool that gives you a guided experience for incrementally upgrading your applications.
The post Introducing the .NET Upgrade Assistant Preview appeared first on .NET Blog.

Serve ML.NET Models as HTTP APIs with minimal configuration

Introduction

One of the most difficult tasks of building machine learning applications is deploying them to production. The ML.NET team is exploring ways to simplify the process and would like to hear your feedback.

When it comes to deploying machine learning models as web services,
The post Serve ML.NET Models as HTTP APIs with minimal configuration appeared first on .NET Blog.

Internals of the POH

As folks are aware we added a new kind of heap in .NET 5 called the POH (Pinned Object Heap). Since this is a user facing feature (and there aren't that many of those in GC) I've been meaning to write about it but didn't get around till now.
The post Internals of the POH appeared first on .NET Blog.

Remote Debug Support in Visual Studio 2019

Visual Studio 2019 offers remote debug support for MSBuild and CMake projects targeting Windows and Linux. Thanks to remote debugging, the following scenarios and more are now possible:
Debugging on your production machines with no development tools installed other than the remote debugger tools.
The post Remote Debug Support in Visual Studio 2019 appeared first on C++ Team Blog.

Registries: Bring your own libraries to vcpkg

Special thanks to Nicole Mazzuca for providing the content of this blog post.

Are you working on a C++ project with library dependencies? Are you tired of maintaining a custom-built package management workflow with duct tape and git submodules? Then you should consider trying out a package manager.
The post Registries: Bring your own libraries to vcpkg appeared first on C++ Team Blog.

App Building with Azure API Management, Functions, Power Apps, and Logic Apps

This month’s series on building and integrating your HTTP APIs using Web API and lots of other goodies together comes to a close with this post, which will show you some exciting ways your Web API projects and Azure Functions can be integrated in new and exciting ways when you describe them with OpenAPI.
The post App Building with Azure API Management, Functions, Power Apps, and Logic Apps appeared first on ASP.NET Blog.

.NET Framework February 2021 Cumulative Update Preview for Windows 10 2004, Windows Server, version 2004, Windows 10, version 20H2 and Windows Server, version 20H2

Today, we are releasing the February 2021 Cumulative Update Preview for .NET Framework for Windows 10 2004, Windows Server, version 2004, Windows 10, version 20H2 and Windows Server, version 20H2.

Quality and Reliability

This release contains the following quality and reliability improvements.
The post .NET Framework February 2021 Cumulative Update Preview for Windows 10 2004, Windows Server, version 2004, Windows 10, version 20H2 and Windows Server, version 20H2 appeared first on .NET Blog.

Generating HTTP API clients using Visual Studio Connected Services

We’re continuing our series on building HTTP APIs with .NET 5. In the first post in this series we talked about building well-described APIs using OpenAPI, and then followed that up taking a deeper dive into some of the open-source tools and packages you can use to make your HTTP API development easier.
The post Generating HTTP API clients using Visual Studio Connected Services appeared first on ASP.NET Blog.

Survey: Library & Open Source

Are you an open source maintainer, contributor or consumer? Or are you building NuGet packages? Please take this 10 minute survey to share your pain points and concerns so we can make your experience better!

Take the .NET open source &
The post Survey: Library & Open Source appeared first on .NET Blog.

Tune in for .NET Conf: Focus on Windows, February 25th

The .NET Conf team is bringing you another “.NET Conf: Focus” event Thursday, February 25 all about building Windows desktop apps. We have finalized the agenda, speakers, and hosts that will make the day educational and fun. We have .NET and Windows team members along with community speakers and MVPs to show you some amazing things you can do.
The post Tune in for .NET Conf: Focus on Windows, February 25th appeared first on .NET Blog.

Take control of your vcpkg dependencies with versioning support

We have an exciting new feature to announce in vcpkg: the long-awaited and highly requested package versioning! This feature makes it possible to install specific versions of dependencies and control installed versions over time. In order to use this feature, a vcpkg.json manifest file must be present in your repo to declare dependencies.
The post Take control of your vcpkg dependencies with versioning support appeared first on C++ Team Blog.

Now announcing: Makefile support in Visual Studio Code!

We are excited to announce a brand-new extension for building and debugging Makefile projects in Visual Studio Code: Makefile Tools (preview)! The extension is in pilot stages, but we’ve curated a list of over 70 popular opensource Makefile projects that work with Makefile Tools.
The post Now announcing: Makefile support in Visual Studio Code! appeared first on C++ Team Blog.

Announcing Entity Framework Core 6.0 Preview 1

Today, the Entity Framework Core team announces the first preview release of

EF Core 6.0.

This release includes new attributes, built-in functions, and database-specific improvements to SQLite and SQL Server capabilities.

Prerequisites
EF Core 6.0 currently targets .NET 5. This will likely be updated to .NET 6 as we near the release.
The post Announcing Entity Framework Core 6.0 Preview 1 appeared first on .NET Blog.

ASP.NET Core updates in .NET 6 Preview 1

.NET 6 Preview 1 is now available and ready for evaluation. This is the first preview of .NET 6, the next major update to the .NET platform. .NET 6 is expected to ship in November of this year, and will be a Long Term Support (LTS) release.
The post ASP.NET Core updates in .NET 6 Preview 1 appeared first on ASP.NET Blog.

Announcing .NET 6 Preview 1

Today, we are happy to deliver the first preview of .NET 6 and share what you can expect from the new release. We have been defining the overall shape of the release for the last few months, including a large set of new experiences and capabilities.
The post Announcing .NET 6 Preview 1 appeared first on .NET Blog.

.NET Framework February 2021 Cumulative Update Preview for .NET Framework.

Yesterday, we released the February 2021 Cumulative Update Preview for .NET Framework.

Quality and Reliability

This release contains the following quality and reliability improvements.

CLR1
Addresses an issue where the entire process would be torn down when a NullReferenceException propagated out of an exception filter.
The post .NET Framework February 2021 Cumulative Update Preview for .NET Framework. appeared first on .NET Blog.

Open-source HTTP API packages and tools

We’re continuing our series on building HTTP APIs with .NET 5. In the previous post, we covered Creating Discoverable HTTP APIs with ASP.NET Core 5 Web API. In this post, we’ll go further with a look at using open-source HTTP API packages and tools.
The post Open-source HTTP API packages and tools appeared first on ASP.NET Blog.

Staying safe with .NET containers

Container-based application deployment and execution has become very common. Nearly all cloud and server app developers we talk to use containers in some way. We mostly hear about public cloud use, but also IoT and have even heard of .NET containers pulled and used over satellite links on cruise ships.
The post Staying safe with .NET containers appeared first on .NET Blog.

.NET Framework February Security and Quality Rollup

Today, we are releasing the February 2021 Security and Quality Rollup Updates for .NET Framework.

Security

CVE-2021-24111– .NET Framework Denial of Service Vulnerability

This security update addresses a denial of service vulnerability in .NET Framework. For more information please see CVE-2021-24111.
The post .NET Framework February Security and Quality Rollup appeared first on .NET Blog.

.NET February 2021 Updates – 5.0.3, 3.1.12, 2.1.25

Today, we are releasing the .NET February 2021 Updates. These updates contains reliability and security improvements. See the individual release notes for details on updated packages.

You can download 5.0.3 , 3.1.12, 2.1.25 versions for Windows, macOS, and Linux, for x86,
The post .NET February 2021 Updates – 5.0.3, 3.1.12, 2.1.25 appeared first on .NET Blog.

Visual Studio Code C++ Extension: Cross-Compilation IntelliSense Configurations

The February 2021 update of the Visual Studio Code C++ extension is now available! This latest release provides support for cross-compilation IntelliSense configurations and over 60 bug fixes! To find out more about all the enhancements, check out our release notes on GitHub.
The post Visual Studio Code C++ Extension: Cross-Compilation IntelliSense Configurations appeared first on C++ Team Blog.

Improved OpenMP Support for C++ in Visual Studio

As devices with multiple cores and processors became ubiquitous, programming languages adapted to provide developers with control over how tasks are divided across processors. The OpenMP application program interface for C, C++, and Fortran was originally developed in the 1990s for this purpose,
The post Improved OpenMP Support for C++ in Visual Studio appeared first on C++ Team Blog.

Creating Discoverable HTTP APIs with ASP.NET Core 5 Web API

This month, we’ll be focusing on building HTTP APIs with .NET 5. We’ll explore a myriad of different tools, technologies, and services that make your API development experience more delightful. Each week, we’ll release a new post on this blog that goes into a separate area of building HTTP APIs with .NET,
The post Creating Discoverable HTTP APIs with ASP.NET Core 5 Web API appeared first on ASP.NET Blog.

Abbreviated Function Templates and Constrained Auto

Declaring function templates in C++ has always been quite verbose. C++20 added a new way of doing so that is more terse and more consistent with lambdas: abbreviated function templates. This short post will show how to use this syntax and how it applies to C++20 concepts.
The post Abbreviated Function Templates and Constrained Auto appeared first on C++ Team Blog.

Playground Games and Turn 10 Studios See 18.2X and 4.95X Link Time Improvements Respectively on Visual Studio 2019

Introduction
The C++ team at Visual Studio has delivered substantial build and link time improvements throughout Visual Studio 2019. This blog is Part 2 of a series of blogs showcasing real-world results of our efforts. See how the Gears 5 team benefited from iteration build time improvements in Part 1.
The post Playground Games and Turn 10 Studios See 18.2X and 4.95X Link Time Improvements Respectively on Visual Studio 2019 appeared first on C++ Team Blog.

Using C# Source Generators to create an external DSL

This post looks at how to use C# Source Generators to build an external DSL to represent mathematical expressions.

The code for this post is on the roslyn-sdk repository.

A recap of C# Source Generators

There are two other articles describing C# Source Generators on this blog,
The post Using C# Source Generators to create an external DSL appeared first on .NET Blog.

Seamlessly Accelerate CMake Projects in Visual Studio with Incredibuild

Visual Studio 2017 shipped with first-class CMake support. Since then, we’ve continued to improve our CMake support by adding new features based on your feedback. We previously blogged about the built-in Incredibuild support for accelerating and visualizing your vcxproj projects, and many of you asked to get this same level of support for your CMake projects.
The post Seamlessly Accelerate CMake Projects in Visual Studio with Incredibuild appeared first on C++ Team Blog.

Blizzard Diablo IV debugs Linux core dumps from Visual Studio

Blizzard is using Visual Studio 2019 to debug Linux core dumps on WSL. The following blog post is written by Bill Randolph, a Senior Software Engineer at Blizzard working on the development of Diablo IV. Thanks for your partnership, Bill!
Introduction

On Diablo IV we develop all our code on Windows and compile for multiple platforms. 
The post Blizzard Diablo IV debugs Linux core dumps from Visual Studio appeared first on C++ Team Blog.