Class ProjectGeneration | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ProjectGeneration

    Inheritance
    System.Object
    ProjectGeneration
    Namespace: VisualStudioEditor
    Syntax
    public class ProjectGeneration : IGenerator

    Constructors

    ProjectGeneration()

    Declaration
    public ProjectGeneration()

    ProjectGeneration(String)

    Declaration
    public ProjectGeneration(string tempDirectory)
    Parameters
    Type Name Description
    System.String tempDirectory

    ProjectGeneration(String, IAssemblyNameProvider)

    Declaration
    public ProjectGeneration(string tempDirectory, IAssemblyNameProvider assemblyNameProvider)
    Parameters
    Type Name Description
    System.String tempDirectory
    IAssemblyNameProvider assemblyNameProvider

    Fields

    MSBuildNamespaceUri

    Declaration
    public static readonly string MSBuildNamespaceUri
    Field Value
    Type Description
    System.String

    Properties

    ProjectDirectory

    Declaration
    public string ProjectDirectory { get; }
    Property Value
    Type Description
    System.String
    Implements
    IGenerator.ProjectDirectory

    Settings

    Declaration
    public TestSettings Settings { get; set; }
    Property Value
    Type Description
    TestSettings

    Methods

    GenerateAll(Boolean)

    Declaration
    public void GenerateAll(bool generateAll)
    Parameters
    Type Name Description
    System.Boolean generateAll
    Implements
    IGenerator.GenerateAll(Boolean)

    GenerateAndWriteSolutionAndProjects()

    Declaration
    public void GenerateAndWriteSolutionAndProjects()

    HasSolutionBeenGenerated()

    Declaration
    public bool HasSolutionBeenGenerated()
    Returns
    Type Description
    System.Boolean
    Implements
    IGenerator.HasSolutionBeenGenerated()

    ProjectFile(Assembly)

    Declaration
    public string ProjectFile(Assembly assembly)
    Parameters
    Type Name Description
    Assembly assembly
    Returns
    Type Description
    System.String

    SolutionFile()

    Declaration
    public string SolutionFile()
    Returns
    Type Description
    System.String
    Implements
    IGenerator.SolutionFile()

    Sync()

    Declaration
    public void Sync()
    Implements
    IGenerator.Sync()

    SyncIfNeeded(IEnumerable<String>, IEnumerable<String>)

    Syncs the scripting solution if any affected files are relevant.

    Declaration
    public bool SyncIfNeeded(IEnumerable<string> affectedFiles, IEnumerable<string> reimportedFiles)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> affectedFiles

    A set of files whose status has changed

    System.Collections.Generic.IEnumerable<System.String> reimportedFiles

    A set of files that got reimported

    Returns
    Type Description
    System.Boolean

    Whether the solution was synced.

    Implements
    IGenerator.SyncIfNeeded(IEnumerable<String>, IEnumerable<String>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023