Visual Studio removes props file definition from vcxproj file
First, make sure the props file exists in the project template, Second, make sure the new project is created with the custom template. You can follow below steps:
- Create a new C++ project, which I named it
MyCustomTemplate
.
- Unload the project , then add
<Import Project="$projectname$.props"
/> to the project file .vcxproj
.
- Reload the project, go to the Project tab, select Export Template, click Next and Finish. (You can check if the props line is exists in your template file, open the
.vcxproj
with notepad.)
- Create new project with the new custom template MyCustomTemplate, then unload the project and check the props file.

Update:
Since you are using the Visual Studio 2015, you would get that error. And if you upgrade your Visual Studio to 2017, everything will be fine.
If you do not want to upgrade your Visual Studio to 2017, you can follow the method of Paul H. to resolve this issue:
How to include a property sheet in VC project template
Hope this helps.