Various topics surrounding Software Development. Be it Code or Tools. Whatever i deem interesting.
Read keyboard state on Windows without libraries
This is about actively reading the keyboard, not about getting key events. If you need that, check out this (archived) post. It still worked the last time I checked. Here’s a simple static class that does the job: Key to it all are the DllImports at the bottom:GetAsyncKeyState is what you usually want. It can…
Version from Directory.Build.prop in .NET Framework projects
Most of the time when working with multiple projects in a solution I want to set the version globally using the Directory.Build.props file. That way I only have to update the version in one file, rather than all project files.While this works great for SDK style projects, it doesn’t work well with .NET Framework projects.…
