401
Rider 2023.2 (blog.jetbrains.com)
submitted 3 years ago by [M] to c/dotnet@programming.dev
402
403
 
 

This is not to be confused with the Avalonia UI framework which remains free and open source.

XPF is a new project by the same team that allows existing WPF apps to be cross-platform (so enterprises can take their existing Windows-only apps and run them on MacOS, Linux and maybe WebAssembly). It's in early stages so I don't know how well it works.

404
 
 
  • Reauthentication flows are now working as expected when using the "Windows authentication broker" as the default authentication mechanism.
  • Linux C++ Cross Platform with cmake - No Caching of realpath command
  • Error Running Test Case using MS Fakes on arm64(UnitTestIsolationException)
  • Error while using Visual Studio 2022 Schema Compare while comparing an Azure SQL DB schema with a VS Database Project
405
submitted 3 years ago by [M] to c/dotnet@programming.dev
406
 
 

"A Visual Studio extension that checks and notifies about available updates for the installed NuGet packages for the open solution."

This time no fancy new features, but a complete refactor of the project structure which will keep the extension easy to maintain.

Thanks goes to @tomenglert

407
408
 
 

Summary of What's New in this Release of Visual Studio 2022 version 17.7 Preview 4

  • Fixes "Waiting for debugger" message on emulator when trying to debug .NET MAUI Android apps.
  • Fixing an issue with symbol loading when debugging MAUI projects.

Developer Community Highlights

  • TestExplorer unable to run GoogleTest tests since the "support" of namespaces in VS 17.6 preview 3
  • Blank Solution project template missing
  • Pylance language server isn't starting in VS due to a "Node.js was not found" error.
  • diagsession fails to load with Specified part does not exist in the package. (0x80131509)
  • Not running compatible code on the thread in Android MAUI
  • Xamarin.android not working, debug mode
  • .NET MAUI Android app: "Waiting for Debugger"
  • Unable to deploy Azure Functions app
  • MAUI Android .NET 8 Crash
409
410
 
 

Starting with Visual Studio 17.7 Preview 3, you can now enable a preview of our modernized Extension Manager that highlights extension details and helps you more easily discover the extensions you’ll love.

411
 
 

While implementing AutoMapper in some existing code, I came across the need to map to a nullable property. Other business logic relied on this particular long being null instead of 0. The DTO has a property that contains a (long)Id, but the Entity contains the virtual property as well as a nullable long? of the Id. Anyway after fumbling through a few tries, I finally came upon the solution and wanted to share it here.

In the MapperProfile for the direction of DTO to Entity you have to do a null check, but the trick for me was having to explicitly cast to (long?)null.

CreateMap<ExampleDto, ExampleEntity>().ForMember(ee => ee.ExampleId, options => options.MapFrom(ed => ed.ExampleProperty != null ? ed.ExampleProperty.ExampleId : (long?)null)).NoVirtualMap();

Hope someone else finds this helpful, and finds it here.

412
413
Announcing .NET 8 Preview 6 (devblogs.microsoft.com)
 
 

We’re delighted to let you know about the latest features and improvements coming with .NET 8 Preview 6! This release is a continuation of the Preview 5 release, and we’re committed to bringing you more enhancements with each monthly release.

Today we have an exciting release incorporated with plenty of library updates, a new WASM mode, more source generators, constant performance improvements, and NativeAOT support on iOS. We hope you enjoy these new features and improvements. Stay tuned for more updates as we continue our journey of making .NET better, together!

414
 
 

I just personally love them and I am looking to get a deeper understanding of them and how to implement them.

Do you chaps have any good resources? (Articles, nuget packages, etc.)

415
 
 

A Visual Studio extension that checks and notifies about available updates for the installed NuGet packages for the open solution.

Bug Fixes Remove infobar when closing a solution to prevent duplicates

416
 
 

Today, we’re excited to announce that Microsoft Dev Box is now generally available. Below we’ll highlight a few significant features of Dev Box for Visual Studio users. Read the announcement blog to learn more about our journey to Microsoft Dev Box and what the service means for Visual Studio subscribers.

417
 
 

Today, we’re releasing an update to the System.Web Adapters that simplify upgrading from ASP.NET to ASP.NET Core. This release brings a number of fixes as well as new scenarios that we’ll explore in this post.

418
419
420
421
submitted 3 years ago by [M] to c/dotnet@programming.dev
422
Rider 2023.2 EAP 7 is out (blog.jetbrains.com)
submitted 3 years ago by [M] to c/dotnet@programming.dev
423
 
 

The documentation uses is in the example for "declaration patterns" but the book I am reading uses a switch statement. But when I try to run the code I run into errors.

using System;

public class Program
{
  public static void Main()
  {
    var o = 42;

    switch (o) {
      case string s:
        Console.WriteLine($"A piece of string is {s.Length} long");
        break;

      case int i:
        Console.WriteLine($"That's numberwang! {i}");
        break;
    }
  }
}

Error:

Compilation error (line 7, col 6): An expression of type 'int' cannot be handled by a pattern of type 'string'.

EDIT

Changing from

var o = 42;

to

object o = 42;

worked.

Full code: https://github.com/idg10/prog-cs-10-examples/blob/main/Ch02/BasicCoding/BasicCoding/Patterns.cs

424
 
 

What does "control falls through a switch statement" mean in this context? Control just moves on to the next statement?

I thought if there is no match and a default case doesn't exist it will raise an exception. Is it not true?

425
 
 

Many of us consider instrumentation as boring infrastructure. But, with the popularity of microservices architecture, its importance have significantly increased. Alex Thissen explains logging, metrics and tracing from .NET (and Azure) point of view. I think we should focus more on OpenTelemetry, but this is a good start.

view more: ‹ prev next ›