Track source of transitive dependency
I recently ran into an issue related to source generation in dotnet when using the FastEndpoints.Generator package. The short story is that the version of the package I was using required a specific version of the Roslyn compiler yet my codebase was pulling in an older one. Looking through the transitive nuget packages, I found the Microsoft.CodeAnalysis.CSharp package and, indeed, it was an older version. I needed to know which top-level nuget package was pulling this. Visual Studio, unfortunately, does not offer this information through its nuget management UI. ...

Automatically Lock a PC Using Nanoframework
There’s something very exciting when working directly with hardware as a professional dotnet software developer that has spent over a decade developing for desktop, mobile, and web. It feels great being able to put my code on a small, low-powered, resource-constrained Microcontroller and have it solve a specific problem I have… or just do fun little projects. After all, it’s why I got into programming in the first place. This blog post is to document how this project came to be and what I had to do to get to the finish line. ...
Controlling My AC Unit With nanoFramework
Why My room’s AC unit (Panasonic) is quite old. It does a great job cooling/heating the place after all these years, but also lacks any “smart” capabilities found on modern units. Personally, I am not a fan of making everything at my home internet-connected for reasons I won’t delve into now, and I certainly don’t want my AC unit to be internet-connected either. However, I want to be able to expand on its functionality as needed. ...
Using the DHT22 sensor with Nanoframework
I have recently discovered Nanoframework which is a community-led project to bring C# and Dotnet to the world of micro-controllers. Since then, I have been tinkering with IoT and embedded devices using C# to connect with sensors and play around with them. One of the sensors I wanted to try out was the DHT22. This sensor has 3 pins you need to connect: a VCC pin (3.3v to 5.5v), a signal/trigger pin, and a ground pin. ...
Uwp IoC Support
I have been developing UWP applications for a few years now and I truly enjoy it. It’s been the platform where I experiment with and used it to learn a lot about programming. In my day job I develop web applications on the ASP.NET MVC framework and one of the things it does right is the native support for IoC containers out of the box. When a HTTP request arrives to an action method in a controller, MVC will initialize the controller, inject all dependencies in its constructor and have it ready to handle the request. ...