Exports DatabaseProject to a NuGet or ZIP package.
This cmdlet exports the DatabaseProject object produced by the Invoke-DevartDatabaseBuild and Set-DevartPackageInfo cmdlets as a NuGet package or a .zip file.
Export-DevartDatabaseProject -OutputDirectory <string> -Project <DatabaseProject> [-Format {NuGet | Zip}] [-Overwrite <SwitchParameter>] [<CommonParameters>]
Specifies the database project object you want to export.
-Project <DatabaseProject>
| Property | Default value |
|---|---|
| Required | True |
| Position | Named |
| Default value | - |
| Accept pipeline input | False |
| Accept wildcard characters | False |
Specifies the path to the folder where DatabaseProject will be exported. If the folder does not exist, it will be created automatically during the export process.
-OutputDirectory <string>
| Property | Default value |
|---|---|
| Required | True |
| Position | Named |
| Default value | - |
| Accept pipeline input | False |
| Accept wildcard characters | False |
Overwrites any existing build artifact with the same name.
-Overwrite <SwitchParameter>
| Property | Default value |
|---|---|
| Required | False |
| Position | Named |
| Default value | False |
| Accept pipeline input | False |
| Accept wildcard characters | False |
Outputs the format of DatabaseProject. If it is not specified, the project exports as a NuGet package by default.
-Format <ExportProjectFormat>
| Property | Default value |
|---|---|
| Possible values | NuGet, Zip |
| Required | False |
| Position | Named |
| Default value | NuGet |
| Accept pipeline input | False |
| Accept wildcard characters | False |
<CommonParameters>
This cmdlet supports these common parameters:
Verbose – Provides detailed output about the command operation.Debug – Provides debugging information.ErrorAction – Specifies how to respond to errors.ErrorVariable – Stores error messages in a variable.WarningAction – Specifies how to respond to warnings.WarningVariable – Stores warning messages in a variable.InformationAction – Specifies how informational messages are handled.InformationVariable – Stores informational messages in a variable.OutBuffer – Controls the number of objects buffered before output.PipelineVariable – Stores the current pipeline object in a variable.OutVariable – Stores output objects in a variable.For more information, see About Common Parameters.
System.Boolean (returns true on success and false otherwise)
System.Boolean returns:
true if the operation was successful.false if the operation failed.Set-DevartPackageInfo -Project $databaseProject -Id Devart.DbForge.DevOpsAutomation.ScriptFolder -Version 1.0.0
Export-DevartDatabaseProject -Project $databaseProject -OutputDirectory C:\NuGetRepository -Format NuGet