Class TemplateFiles
A helper class to manage (and locate) all the templates.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.MSBuild
Assembly: cs.temp.dll.dll
Syntax
public class TemplateFiles
Properties
Instance
Gets the singleton instance (created on demand) of this class.
Declaration
public static TemplateFiles Instance { get; }
Property Value
Type | Description |
---|---|
TemplateFiles |
MSBuildSolutionTemplatePath
Gets the MSBuild Solution file (.sln) template path.
Declaration
public string MSBuildSolutionTemplatePath { get; }
Property Value
Type | Description |
---|---|
String |
OtherFiles
Gets a list of all other files included among the templates.
Declaration
public IReadOnlyList<string> OtherFiles { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<String> |
PlatformPropsTemplatePath
Gets the MSBuild Platform Props file (.props) template path.
Declaration
public string PlatformPropsTemplatePath { get; }
Property Value
Type | Description |
---|---|
String |
PlatformTemplates
Gets a list of specialized platform templates.
Declaration
public IReadOnlyDictionary<string, string> PlatformTemplates { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
PluginMetaTemplatePaths
Gets a list of meta files for plugins templates.
Declaration
public IReadOnlyDictionary<BuildTargetGroup, FileInfo> PluginMetaTemplatePaths { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<BuildTargetGroup, FileInfo> |
SDKProjectFileTemplatePath
Gets the MSBuild C# SDK Project file (.csproj) template path.
Declaration
public string SDKProjectFileTemplatePath { get; }
Property Value
Type | Description |
---|---|
String |
Methods
GetTemplateFilePathForPlatform(String, String)
Gets the correct platform template file path.
Declaration
public string GetTemplateFilePathForPlatform(string platform, string configuration)
Parameters
Type | Name | Description |
---|---|---|
String | platform | The platform of the requested template. |
String | configuration | The configuration of the requested template. |
Returns
Type | Description |
---|---|
String | The absolute file path for the platform template to use. |