Articles for: ASP.NET Core

ASP.NET Core bind query parameter with different name

If you have model with different name than query string you can simply use attribute to handle it

ASP.NET Core: XML request and response

In ASP.NET Core is preferred to used JSON for request parameter and for the response. But sometimes we need to use XML in POST Body and get XML response.

MSBuild csproj - run Powershell script before rebuild

Sometimes you will need to run PowerShell or another script before the Rebuild process. To do that you can extend *.csproj file with Exec node and place your script call into Command property.