dotnetomaniak.pl - Artykuły z tagiem roslyn

Mika June 8th, 2021 The .NET Productivity team (aka. Roslyn) continues to enhance your developer productivity with the latest tooling updates in Visual Studio 2019. In the last release, we listened to your feedback and have been hard at work improving the .NET developer experience. To try out the latest .NET productivity enhancements download the latest Visual Studio release. Download Visual Studio 2019Tooling improvements The feature that I’m most excited about is Inheritance margin. Inheritance mar...

Tagi: roslyn
Dziel się z innymi:
Learn What’s New in .NET Productivity | Visual Studio Blog

Narzędzia 1051 dni, 21 godzin, 53 minuty temu Piotr Stapp 44 źrodło rozwiń

In the last two posts, I’ve described 14 different code smells related to the async/await keywords. Beside the problem description, I’ve also provided info about code analyzers that can detect and report given issue. Those analyzers come from a few different packages that are not strictly devoted to the asynchronous programming area. They also contain rules from other fields with predefined severity, which might not be appropriate to your needs, or you might not be interested in enforcing them at all. Th...

Dziel się z innymi:
Async code smells and how to track them down with analyzers - Summary · Cezary Piątek Blog

Narzędzia 1269 dni, 20 godzin, 4 minuty temu cezarypiatek 78 źrodło rozwiń

Which analyzer package should I use and how to configure it to avoid most common problems related to async/await.

Dziel się z innymi:
Async code smells and how to track them down with analyzers - Part I · Cezary Piątek Blog

Sztuka programowania 1292 dni, 21 godzin, 13 minut temu cezarypiatek 67 źrodło rozwiń

How to keep two different types in synchronization using roslyn analyzers.

Tagi: C#, dotnet, roslyn
Dziel się z innymi:
[EN] Twin types - properties synchronization without inheritance · Cezary Piątek Blog

Narzędzia 1411 dni, 22 godziny, 17 minut temu cezarypiatek 51 źrodło rozwiń

How to improve developer's experience while working with non-nullable references

Tagi: roslyn
Dziel się z innymi:
[EN] Improving non-nullable reference types handling · Cezary Piątek Blog

Sztuka programowania 1493 dni, 20 godzin, 6 minut temu cezarypiatek 64 źrodło rozwiń

How to create immutable types without writing a large amount of boilerplate code.

Dziel się z innymi:
[EN] Immutable types in C# with Roslyn · Cezary Piątek Blog

Sztuka programowania 1502 dni, 20 godzin, 22 minuty temu cezarypiatek 89 źrodło rozwiń

In this blog post, I’m going to describe how to create a tool for generating code during the build process and how I used it to create auto-synchronizing mapping classes.

Dziel się z innymi:
How to simulate AutoMapper that works during the build time · Cezary Piątek Blog

Narzędzia 1607 dni, 20 godzin, 29 minut temu cezarypiatek 97 źrodło rozwiń

This blog post continues the series "Avoid thread synchronization problems with Roslyn" and this part is about the traps related to the usage of synchronization primitives.

Dziel się z innymi:
Avoid thread synchronization problems with Roslyn: Synchronization primitives traps · Cezary Piątek Blog

Narzędzia 1684 dni, 21 godzin, 58 minut temu cezarypiatek 52 źrodło rozwiń

How I built a very simple macro system for C# that works right in the code editor

Dziel się z innymi:
[EN] CSharp Macros - let the Roslyn type for you · Cezary Piątek Blog

Narzędzia 1698 dni, 22 godziny, 10 minut temu cezarypiatek 72 źrodło rozwiń

I've decided to create a series of blog posts where I will present what I've recently learned about the traps related to the multithreading in C#. I will also show you my proposition of Roslyn analyzers that can possibly help to avoid those issues right at the stage of writing the code. This part is about choosing a suitable object for locking.

Dziel się z innymi:
[EN] Avoid multithreading traps with Roslyn: Lock object selection · Cezary Piątek Blog

Sztuka programowania 1712 dni, 20 godzin, 56 minut temu cezarypiatek 60 źrodło rozwiń

How to avoid common mocking issues and save a lot of typing with the help of Roslyn.

[EN] Effective mocking · Cezary Piątek Blog

Narzędzia 1731 dni, 22 godziny, 4 minuty temu cezarypiatek 162 źrodło rozwiń

Over a year ago I wrote a blog post about designing exceptions. I found this article very useful by myself and I used it as a reference a few times during code review. However, it’s almost impossible to expect that, after reading the recommended resource, anybody would start to apply described rules immediately and remember about them all the time.

Dziel się z innymi:
[EN] Exception usage analyzer · Cezary Piątek Blog

Sztuka programowania 1761 dni, 21 godzin, 19 minut temu cezarypiatek 86 źrodło rozwiń

When we started PlatformX project, we were using full .NET Framework. Then we migrated to .NET Core. Despite many advantages this migration meant a problem with using Roslyn. This problem is called MsBuildWorkspace...

Tagi: roslyn
Dziel się z innymi:
How to use Roslyn with .NET Core | Michał Komorowski

A few weeks ago I posted about negative aspects of applying AutoMapper. As an alternative I suggested typing all mapping code by hand or utilize some kind of generator like T4Scaffoling or something Roslyn based. In the past I experimented with T4Scaffoling but it was quite tedious. It requires preparation of templates in T4 syntax, referencing it to the project and writing some PowerShell code to provide data for templates. There also was an issue with assembly locking. Then I tried to generate code wit...

Dziel się z innymi:
[EN] Generate mapping code with Roslyn code fix provider. · CEZARY PIĄTEK

Narzędzia 2240 dni, 21 godzin, 3 minuty temu cezarypiatek 65 źrodło rozwiń

A while ago 2 of my SpecFlow tests started failing on the build server. At the same time, on a few local machines no problems were observed. I also didn't find any exceptions in the log, so I decided to log into the server and debug a problem there. Quite soon I figured out that the problem is in the algorithm that uses Roslyn to analyse and understand the code...

Tagi: roslyn
Dziel się z innymi:
Roslyn rme again | Michał Komorowski

I can’t be the only person who hates waiting for the code to compile and run… Especially when I want to test only a small part of it! That’s a total waste of time! But good news everyone, I found a way to run a part of my C# code without building the whole project!Ctrl + E, E – the magical shortcut!

Dziel się z innymi:
Ctrl + E, E – the best Visual Studio shortcut I’ve seen so far! – A Girl Among Geeks

Inne 2506 dni, 6 godzin, 11 minut temu AGirlAmongGeeks 401 źrodło rozwiń

My last 2 posts were about problems with using Roslyn. Nonetheless, even if I sometime hate it, I'm still using it so the time has come to show some practical example of using Roslyn. Recently, I've been working on the task that can be summed up as: Take this ugly code and do something with it. i.e. more or less the refactoring task...

Tagi: roslyn
Dziel się z innymi:
How I removed 50% of the code | Michał Komorowski

In my previous post I wrote about my problem with "empty" projects and Roslyn. The symptom was that in some cases according to Roslyn my C# projects didn't contain any files. For quite a long time, I haven't been able to find a solution. Especially because I couldn't reproduce problem on my local machine. Fortunately, today I noticed exactly the same problem on another computer.

Tagi: roslyn
Dziel się z innymi:
Why I hate Roslyn even more | Michał Komorowski

Recently at work I’ve been looking into migrating our projects from VS2013 to VS2017. As part of the process we decided to move from C# 5.0 to C# 7.0. It turned out that after the switch some of our projects won’t build anymore. I spent some time investigating the issue and found the outcome interesting so let me share my story with you.

Tagi: C# 6.0, roslyn
Dziel się z innymi:
Method overload resolution in C# 6.0: an interesting bug story

Sztuka programowania 2570 dni, 20 godzin, 37 minut temu miloszpiechocki 65 źrodło rozwiń

The more I work with Roslyn the more I appreciate the possibilities it gives and the more I hate it. And I hate it for the same thing as many other projects I worked with in the past. What is it? Well, I like when a system fails fast, fails loudly and fails in the clear way. Unfortunately, Roslyn can do something completely different what sometimes makes working with it the pain in ass. I'll give you some examples.

Tagi: roslyn
Dziel się z innymi:
Why I hate Roslyn | Michał Komorowski
1 2

Najaktywniejsi w tym miesiącu