Skip to content
Sven Hübner IT
  • Home
  • Blog

productivity

  • Home
  • Blog
  • productivity

Advanced MSBuild: Auto-setup test projects

Posted by By sven.huebner.it December 24, 2022Posted inBuild, General Development
You can minimize the effort of creating new test projects according to your project's conventions by defining some global default MSBuild properties. A new test project csproj will then be a five-liner consisting only of the SDK and TFM.
Read More

Advanced MSBuild: Adding a ProjectReference sibling project to a PackageReference project

Posted by By sven.huebner.it December 3, 2022Posted inBuild, General Development1 Comment
Speed up development of dependent nuget package chains by creating sibling projects that use ProjectReference instead of PackageReference for instantaneous feedback.
Read More

Advanced MSBuild: project file as single source of truth for build and runtime

Posted by By sven.huebner.it November 19, 2022Posted inBuild, General Development
It is possible to define build parameters in a way that is accessible at runtime by declaring custom AssemblyAttribute entries in your csproj file.
Read More

Advanced MSBuild: multi-API-version compatibility without code duplication

Posted by By sven.huebner.it November 5, 2022Posted inBuild, General Development
Maintain functionality against different versions of an external library without code duplication by using preprocessor directives.
Read More

Advanced MSBuild: Ignoring Bitness when building Plugins

Posted by By sven.huebner.it October 21, 2022Posted inBuild, Uncategorized
When developing plugins for an application that is shipped as both 32 and 64 bit, it may be possible to publish a single artifact working with both by building as AnyCpu, ignoring the MSB3270 warning.
Read More

Advanced MSBuild: Introduction

Posted by By sven.huebner.it October 15, 2022Posted inBuild
Knowing MSBuild can help you remove code duplication, enforce consistency in a large repo and improve developer experience.
Read More

Be more productive with more keystrokes: use named Regex capture groups

Posted by By sven.huebner.it September 24, 2022Posted inGeneral Development, Uncategorized
Use named capture groups when parsing with regular expressions to make the Regex self-contained and the matching code more readable.
Read More

Be more productive with different keystrokes: Explicit interface implementation

Posted by By sven.huebner.it January 8, 2022Posted inGeneral Development
Implement interfaces explicitly to convey intent, get more help from the compiler and maybe type less.
Read More

Be more productive with more keystrokes: seal all the things

Posted by By sven.huebner.it November 20, 2021Posted inGeneral Development
Declare your classes (and records!) sealed by default.
Read More

Be more productive with fewer keystrokes: Access modifiers

Posted by By sven.huebner.it November 10, 2021Posted inGeneral Development1 Comment
Only declare access modifiers if you do not want the default. This makes the code much more readable and succinct.
Read More

Posts pagination

1 2 Next page
Copyright 2026 — Sven Hübner IT. All rights reserved. Sinatra WordPress Theme
Scroll to Top