5
我在Visual Studio 2012中有一个数据库项目。我试图创建一个MSBuild项目来在构建服务器上发布数据库。在我的解决方案中,我有一个我想在构建服务器上使用的发布配置文件。在MSBuild for Database Project中使用PublishProfile
我有以下目标设置:
<Target Name="BuildDatabases">
<MSBuild Projects="$(DBProjectPath)" Targets="Build;Deploy" Properties="DeployOnBuild=true;SqlPublishProfilePath=BuildServer.publish">
</MSBuild>
</Target>
我试过PublishProfile的组合和SqlPublishProfilePath无济于事。我总是收到:
Deploy Error: The connection string is not valid
我可以使用VS中的发布配置文件,没有连接问题。