Hello Matteo,
I follow your tutorial step by step and I found that it do not work. Adding custom .appinstaller file to the package project do not take effect to the output file AppPackages\ContosoExpenses.Package.appinstaller file. I test it using latest Visual Studio (16.4.2). I dive deep into this issue and I found error in tutorial and maybe also in VS.
You wrote that we have to add App Installer template file. On screenshoot the name of file is Packaging1.appinstaller oand, you said that we can give it a name. Both are wrong. If we use default name Packaging1.appinstaller or our own name (e.g. ContosoExpenses.appinstaller) then Visual Studio ignore this file and will not use it as template. So we do not see the warning that an App Installer template has been detected and, of course, our modification of template will not take effect to the output AppPackages\ContosoExpenses.Package.appinstaller file.
The reason is that template file have to be named exactly Package.appinstaller. If name is different, then VS ignore it. I used my own file name and then spend some hours to find why it do not work. Renaming file to Package.appinstaller helps immediately.