Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

The Templates.inf File 

Templates.inf is a text file that contains a list of templates to render for the project.

Because Templates.inf is a template file itself, you can use directives to indicate which files to include in a project, depending on a user's selections. See Template Directives for a list of directives that you can use in this file.

Example

Template1.txt
Template2.txt
  [!if TYPE_A]
TemplateOptionA.h
TemplateOptionA.cpp
  [!else]
TemplateOptionB.h
TemplateOptionB.cpp
  [!endif]

CreateCustomInfFile renders Templates.inf into a temporary text file, which must then be deleted after processing the files.

Example

var InfFile = CreateCustomInfFile();
AddFilesToProject(selProj, strProjectName, InfFile);
InfFile.Delete();

See The JScript File for more information.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft