Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

How to create a Cake Addin

Who doesn’t love cake?  There are a ton of existing addins for Cake, but you may run into a situation where you want to create your own cake add in.  Here’s how! Note: If you have no idea what Cake is, check out my intro to Automating Builds with Cake (C# Make) post first. https://youtu.be/qVd0VNII5nIVideo can’t be loaded because JavaScript is disabled: How to create a Cake (C# Make) Addin (https://youtu.be/qVd0VNII5nI) AppSettings Replacer In my case I wanted to replace some values in the appSettings of an app.config.  There are already a couple existing ways to do this, such as… Read More »How to create a Cake Addin

ASP.NET Core MVC JSON Output in camelCase or PascalCase

You may have noticed if you have migrated from ASP.NET Web API to ASP.NET Core, that the default case for serializing output to JSON is now camelCase. If you want to see the history, you can check out this issue on the ASP.NET Core MVC GitHub. https://www.youtube.com/watch?v=FGce4oX_8q0Video can’t be loaded because JavaScript is disabled: ASP.NET Core MVC JSON Output in camelCase or PascalCase (https://www.youtube.com/watch?v=FGce4oX_8q0) Pascal Default As mentioned, the default is now camelCase.  If you need/want all of the JSON output to be in PascalCase, then the solution is pretty simple. All you need to do is specify the DefaultContractResolver.… Read More »ASP.NET Core MVC JSON Output in camelCase or PascalCase

Generate C# API Documentation with Wyam

We’ve all ran into the situation of wanting or needing to create API documentation.  It could be your open source library/framework or for your internal work projects. Wyam Wyam is a highly modular and extremely configurable static content generator and toolkit. It can be used for all sorts of things like creating a blog, but one of cool things it can do is build some awesome API documentation for your C# code. So if you are in the market for generating API docs, check this out. https://youtu.be/vuh1DsmaMfkVideo can’t be loaded because JavaScript is disabled: Generate API Docs for your C#… Read More »Generate C# API Documentation with Wyam