I currently have multiple projects being build using msbuild. I have a small customisation to the build that is handled by a .targets file. One solution is to add the snippet
Starting from MSBuild 15.0, the following two files are auto-imported into your build in case they are found on the project path or in any parent folder on the path to the root directory:
Remark: once the props or targets file is found, MSBuild will stop looking for a parent one.
Also see: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build