Contributions

Library
Dead simple library for annotating steps of test case scenarios.
Article
I recently migrated my VS Extension MappingGenerator (https://mappinggenerator.net/) to VisualStudio 2022. Unfortunately, I lost 4h by following the official migration guideline. Here are my notes on the subject to save you some time https://cezarypiatek.github.io/post/migrate-vsix-to-vs2022/
Article
In the “classical unit tests” developers quite often use Arrange/Act/Assert comments to annotate the main parts of the test method script. However, the test case scenarios in component tests tend to be more complex and those simple notations don’t fit anymore. Here's my proposition on how to deal with that problem...
Article
In this blog post, I'm going to share my experience on testing `ASP.NET Core` applications by applying an unconventional method called `snapshot assertions`. In comparison to the classical approach, this method should save you a lot of time and improve assertions maintainability.
Article
Enforcing explicit discard of unused return values with Roslyn analyzer.
Article
How to completely automate continuous integration and release management of visual studio extensions.
Article
In this article I'm presenting my own configuration of roslyn analyzers related to asynchronous programming. You can take it and apply right await to your codebase making it resilient to different async code smells.
Article
This blog post continues the series which is a guide through the code analyzers available on the market and their possibilities. I’m trying to help you answer the question: “Which analyzer package should I use and how to configure it to avoid problems related to async/await?”.
Article
There are many existing analyzer packages provided by the community with hundreds of different rules. This abundance raises the following question: Which analyzer packages should I use and which rules should be reported as errors? To help answer this question, I decided to start a blog post series that describes different code smells together with analyzers that can detect them. I will start with analyzers related to asynchronous programming.
Article
How to configure dotnet core solutions to automatically generate client packages for WebAPI projects
Article
My maintainability tips for using Dapper with SqlServer
Article
There’s a certain set of special method signatures in C# which have particular support on the language level. Methods with those signatures allow for using a special syntax which has several benefits. For example, we can use them to simplify our code or create DSL to express a solution to our domain-specific problem in a much cleaner way. I came across those methods in different places, so I decided to create a blog post to summarize all my discoveries on this subject.
Article
Documentation for new csproj format, as well as for Nuget related properties, is scattered across different MSDN documents, so I decided to create this blog post as a reference to what I’ve recently learned and discovered about the project’s options that affect the content of the output directory.
Article
Multithreading is one of the most difficult aspects of programming and can cause a lot of headaches. The main source of problems is often the improper usage of synchronization mechanisms, which can result in deadlocks or a complete lack of synchronization despite our expectations. 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.
Library
A simple template base system of macros for C# that can be executed in design time
Article
How to avoid common mocking issues and save a lot of typing with the help of Roslyn.
Article
Over a year ago I wrote a blog post about designing exceptions which I used 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, so I've decided to automate my advice by creating Roslyn analyzers.
Article
. TeamCity has really good support for running PowerShell thanks to dedicated build step. However, it can cause some troubles if it’s not configured correctly. After coming across the same mistakes and issues over and over again, I finally decided to write this article that shows how to use PowerShell properly, together with TeamCity. I hope you will find it useful.
Article
In the early days of dotnet core, there was an attempt of changing the C# project file format. The old “csproj” based on XML format was replaced with .xproj/project.json. However, after releasing dotnet core 1.0 the authors decided to get back to XML file. The format stayed the same but the specification went through a major change. With the new schema, a lot of improvements come into .net development and they are not restricted only to dotnet core projects.
Article
Have you ever been in a situation when you discovered an exception in the logs that forced you to spend the next couple of minutes - or even hours - figuring out what exactly went wrong?
Article
How to prepare Resharper LiveTemplates which save you a lot of typing in CQRS apps.
Library
:arrows_counterclockwise: "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
Article
How to demystify 'String or binary data would be truncated' NHibernate exception by detecting invalid fields before committing changes to database
Article
How to substitute AutoMapper with Roslyn code fix provider that generates code in design time.
Article
Why the javascript library can stop you from releasing to the production and how to prevent it.
Article
Over 5 years ago I participated in a project where there was a trial of using AutoMapper but happily we drown back from this idea in time. In this article I'm explaining why this was a good decision.
Article
How to send notification to Microsoft Teams channel from TeamCity using PowerShell build step and how to make it reusable with meta runners.
Article
This post is an attempt of summarizing tricks from the DSC tutorial and my former knowledge about GUI tools associated with PowerShell. I find it useful when preparing PowerShell scripts and it should be helpful for people who start exploring PowerShell.
Article
How to debug third party libraries in Visual Studio with Resharper decompiler

Showing the last 30 only...