So, you’ve built an angular library, created a showcase angular application. Now you want to display the library version in the application?

The version number is pulled from the library package.json

Well, all you need to do is:

  1. Add “node” to your tsconfig.lib.json compilerOptions:types
  2. Export the field from your public-api
/* eslint-disable @typescript-eslint/no-var-requires */...export const NgBootstrapVersion: string = require('../package.json').version;

The changes are in this commit



Recently I bought 2 more displays to use with my laptop. However, I’m pretty much unable to use the searchbox (ctrl+F) when Visual Studio is positioned on a secondary monitor. It seems like you’re always clicking 6 cm next to the place your cursor is at.

It seems that the solution is pretty easy:

  • Open regedit
  • Navigate to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  • Add a new entry to the key:
  • Name = location of your devenv.exe — in my case C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
  • Value = DPIUNAWARE

Since I was starting Visual Studio as administrator (you know, devenv.exe → Troubleshoot compatibility → This program requires additional privileges), there was already an entry with this name. So I had to use:

  • Name = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe