docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProjectGeneration

    Inheritance
    object
    ProjectGeneration
    Implements
    IGenerator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Microsoft.Unity.VisualStudio.Editor
    Assembly: Unity.VisualStudio.Editor.dll
    Syntax
    public class ProjectGeneration : IGenerator

    Constructors

    ProjectGeneration()

    Declaration
    public ProjectGeneration()

    ProjectGeneration(string)

    Declaration
    public ProjectGeneration(string tempDirectory)
    Parameters
    Type Name Description
    string tempDirectory

    ProjectGeneration(string, IAssemblyNameProvider, IFileIO, IGUIDGenerator)

    Declaration
    public ProjectGeneration(string tempDirectory, IAssemblyNameProvider assemblyNameProvider, IFileIO fileIoProvider, IGUIDGenerator guidGenerator)
    Parameters
    Type Name Description
    string tempDirectory
    IAssemblyNameProvider assemblyNameProvider
    IFileIO fileIoProvider
    IGUIDGenerator guidGenerator

    Fields

    MSBuildNamespaceUri

    Declaration
    public static readonly string MSBuildNamespaceUri
    Field Value
    Type Description
    string

    Properties

    AssemblyNameProvider

    Declaration
    public IAssemblyNameProvider AssemblyNameProvider { get; }
    Property Value
    Type Description
    IAssemblyNameProvider

    ProjectDirectory

    Declaration
    public string ProjectDirectory { get; }
    Property Value
    Type Description
    string

    Methods

    GenerateAndWriteSolutionAndProjects()

    Declaration
    public void GenerateAndWriteSolutionAndProjects()

    HasSolutionBeenGenerated()

    Declaration
    public bool HasSolutionBeenGenerated()
    Returns
    Type Description
    bool

    IsSupportedFile(string)

    Declaration
    public bool IsSupportedFile(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool

    ProjectFile(Assembly)

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

    SolutionFile()

    Declaration
    public string SolutionFile()
    Returns
    Type Description
    string

    Sync()

    Declaration
    public void 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
    IEnumerable<string> affectedFiles

    A set of files whose status has changed

    IEnumerable<string> reimportedFiles

    A set of files that got reimported

    Returns
    Type Description
    bool

    Whether the solution was synced.

    Implements

    IGenerator
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)