需要有下列 .NET Core dll 與目標檔案 Microsoft.Data.Tools.Schema.SqlTasks.targets,才能在適用於 SQL 資料庫專案之 Azure Data Studio 延伸模組所支援的所有平台中,從命令列建置 SQL 資料庫專案。 這些檔案是在 Azure Data Studio 介面中完成的第一個組建期間由延伸模組所建立,並放置於 BuildDirectory 之下延伸模組的資料夾中。 例如,在 Linux 上,這些檔案會放置於 ~\.azuredatastudio\extensions\microsoft.sql-database-projects-x.x.x\BuildDirectory\ 中。 將這 11 個檔案複製到可存取的新資料夾,或記下其位置。 在此文件中,此位置稱為 DotNet Core build folder。
Microsoft.Data.SqlClient.dll
Microsoft.Data.Tools.Schema.Sql.dll
Microsoft.Data.Tools.Schema.SqlTasks.targets
Microsoft.Data.Tools.Schema.Tasks.Sql.dll
Microsoft.Data.Tools.Utilities.dll
Microsoft.SqlServer.Dac.dll
Microsoft.SqlServer.Dac.Extensions.dll
Microsoft.SqlServer.TransactSql.ScriptDom.dll
Microsoft.SqlServer.Types.dll
System.ComponentModel.Composition.dll
System.IO.Packaging.dll
如果專案在 Azure Data Studio 中建立的,請直接跳到從命令列建置專案。 如果專案是在 SQL Server Data Tools (SSDT) 中建立的,則在 Azure Data Studio SQL 資料庫專案延伸模組中開啟專案。 在 Azure Data Studio 中開啟專案,即會自動更新包含三個編輯的 sqlproj 檔案,以供參考: