Class UnityProjectInfo
A helper class to parse the state of the current Unity project.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.MSBuild
Assembly: cs.temp.dll.dll
Syntax
public class UnityProjectInfo
Constructors
UnityProjectInfo(IEnumerable<CompilationPlatformInfo>, String)
Declaration
public UnityProjectInfo(IEnumerable<CompilationPlatformInfo> availablePlatforms, string projectOutputPath)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CompilationPlatformInfo> | availablePlatforms | |
String | projectOutputPath |
Properties
CSProjects
Gets all the parsed CSProjects for this Unity project.
Declaration
public IReadOnlyDictionary<string, CSProjectInfo> CSProjects { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, CSProjectInfo> |
Plugins
Gets all the parsed DLLs for this Unity project.
Declaration
public IReadOnlyCollection<PluginAssemblyInfo> Plugins { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<PluginAssemblyInfo> |
SpecialPluginNameMappingUnity2019
Starting from Unity 2019 some plugins are shipped with Unity in its source form. These plugins need to be handled specially.
Declaration
public static IReadOnlyDictionary<string, string> SpecialPluginNameMappingUnity2019 { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
UnityProjectName
Gets the name of this Unity Project.
Declaration
public string UnityProjectName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ExportSolution(String, String, String)
Exports the project info into a solution file, and the CSProject files.
Declaration
public void ExportSolution(string solutionTemplateText, string projectFileTemplateText, string generatedProjectPath)
Parameters
Type | Name | Description |
---|---|---|
String | solutionTemplateText | The solution file template text. |
String | projectFileTemplateText | The project file template text. |
String | generatedProjectPath | The output folder of the platform props. |