1
使用dbDacFx我試圖創建一個包來部署網站和數據庫。清單文件
的manifest.xml:
<sitemanifest>
<iisApp path="webApp" />
<dbDacFx path="database.dacpac" />
</sitemanifest>
的parameters.xml:
<parameters>
<parameter name="appPath" defaultValue="dev.local" tags="iisapp">
<parameterEntry kind="ProviderPath" scope="iisApp" match="webApp" />
</parameter>
<parameter name="dbServer" defaultValue="localhost" tags="dbServer,sql" />
<parameter name="connectionString" defaultValue="Server={dbServer};Initial Catalog=MyDatabase;Integrated Security=True;" tags="hidden,sql,sqlconnectionstring">
<parameterEntry kind="ProviderPath" scope="dbDacFx" match="database.dacpac" />
<parameterEntry kind="XmlFile" scope="webApp\\Web.config" match="//connectionStrings/add[@name='DB']/@connectionString" />
</parameter>
</parameters>
而且我得到以下錯誤:
There is no stream data associated with 'database.dacpac'.
是否有可能使用dbDacFx供應商在manifes T'