docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PackageBinaryZipping

    Inheritance
    object
    PackageBinaryZipping
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.PackageManager.ValidationSuite
    Assembly: Unity.PackageValidationSuite.Editor.dll
    Syntax
    public static class PackageBinaryZipping

    Methods

    TryZipPackageBinaries(string, string, string, string, out string)

    Creates a zip file containing the .dlls built from .asmdefs in the given package.

    Declaration
    public static bool TryZipPackageBinaries(string packageRootPath, string packageName, string packageVersion, string zipDirectory, out string zipFilePath)
    Parameters
    Type Name Description
    string packageRootPath

    The path to the root of the package

    string packageName

    The name of the package

    string packageVersion

    The version of the package

    string zipDirectory

    The directory where the zip file will be placed

    string zipFilePath

    Upon returning, this will contain the path to the generated zip file

    Returns
    Type Description
    bool

    True if the zip succeeds. False if the 7z fails to create the zip file.

    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)