0
Web
및 SSDT
프로젝트가 포함 된 Visual Studio 솔루션이 있습니다. WebDeployPackage로 내 웹 사이트를 배포하고 싶습니다. 명시 적으로 알려진 매개 변수 ScriptDatabaseOptions=False
을 통해 데이터베이스 속성을 배포하지 dbDacFx 알려주고 싶지만 pubxml 파일에서 dbDacFx 공급자를 매개 변수화하는 방법을 모르겠습니다. 생성 된 배포 프로필은 다음과 같습니다..pubxml의 사용자 정의 dbDacFx 공급자 매개 변수 추가
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>Package</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<DesktopBuildPackageLocation>E:\Users\...</DesktopBuildPackageLocation>
<PackageAsSingleFile>true</PackageAsSingleFile>
<DeployIisAppPath>mySite/launchSite</DeployIisAppPath>
<PublishDatabaseSettings>
<Objects xmlns="">
<ObjectGroup Name="xxx" Order="1" Enabled="True">
<Destination Path="ConnectionString" Name="ConnectionStringName" />
<Object Type="DbDacFx">
<PreSource Path="ConnectionString" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\xxx_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="EntityConnectionString" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
</PublishDatabaseSettings>
</PropertyGroup>
...
</Project>
Visual Studio 2015 Enterprise를 사용하고 있습니다.