I went through the steps to export the Visual C++ Project as a Template in Visual Studio 2015. It only contains one file. Main.cpp
When I open the new project created from that template it gives: "files cannot be found" when I try to click on Main.cpp.
I'm missing something, please help.
Ok here is how you do it:
<TemplateContent> <Project TargetFileName="sample.vcxproj" File="sample.vcxproj" ReplaceParameters="true"> <ProjectItem ReplaceParameters="false" TargetFileName="$projectname$.vcxproj.filters">sample.vcxproj.filters</ProjectItem> </Project> </TemplateContent>
<ProjectItem ReplaceParameters="false" TargetFileName="Main.cpp">Main.cpp</ProjectItem>
Unfortunately any answer is just going to be a work around -- this functionality is currently broken in Visual Studio 2015, bug has reported in a couple places:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.