We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class UnityProjectInfo

    A helper class to parse the state of the current Unity project.

    Inheritance
    Object
    UnityProjectInfo
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    In This Article
    Back to top Generated by DocFX