-
Trimming Unnecessary Dependencies from Projects
When you’re working in large repositories with hundreds of MsBuild projects, you’re bound to have fairly complex build graphs. Over time, these can devolve and you may end up with lots of dependencies between projects which are no longer needed. This can cause builds to slow down as they are less parallelizable, and the developer experience can suffer as you unnecessarily rebuild libraries which have falsely depend on libraries you changed.
-
Setting up a Roaming Developer Console
Have you ever wanted to have your personal scripts and aliases just always available to you in any console session? Well, it’s possible!
-
Testing asynchronous code: async vs fake async
In the last post I explored implementing a mock which tested asynchronous code in a “fake” asynchronous way, and I promised to dive a little deeper into that concept and compare it with testing in an asynchronous way.
-
HttpClient and Unit Testing
If you’ve written C# which uses
HttpClientand tried to unit test it, you probably noticed that it’s not the easiest thing in the world to mock out. If this github issue is any indication, many developers don’t find it particularly easy either. It’s certainly not impossible, but it requires learning about some of the internals ofHttpClient, such asHttpMessageHandleras theHttpClientis designed as just a wrapper around these things.