[英]Visual Studio 2010 Database Project Deployment
In Visual Studio 2010, it's possible to create "deployment packages" for your projects. 在Visual Studio 2010中,可以为项目创建“部署包”。 For web applications, you can right-click the project, and choose "Build Deployment Package"
对于Web应用程序,可以右键单击该项目,然后选择“构建部署包”
However for "Database Projects", there is no "Build Deployment Package" option. 但是对于“数据库项目”,没有“构建部署包”选项。 There's "Build", and "Deploy".
有“Build”和“Deploy”。 When you check the properties of a Database project, under the "Deploy" tab, you can create a deployment script.
检查数据库项目的属性时,在“部署”选项卡下,可以创建部署脚本。 This is supposed to generate a create-database.sql script that some DBA on another team can run and deploy your database (synonymous with an IT person importing a deployment package for a web application into IIS)
这应该生成一个create-database.sql脚本,其他团队中的某个DBA可以运行和部署您的数据库(与将Web应用程序的部署包导入IIS的IT人员同义)
But when I build my solution, including the database project, I don't see the create-database.sql script anywhere? 但是当我构建我的解决方案,包括数据库项目时,我没有在任何地方看到create-database.sql脚本? What's going on here?
这里发生了什么? Why is the database deployment different than web application deployment?
为什么数据库部署与Web应用程序部署不同?
What is the deployment process supposed to be? 应该是什么部署过程?
The deployment script isn't created when you build the solution. 构建解决方案时,不会创建部署脚本。 You need to select 'Deploy' from the build menu, then the script will be created according to your project settings.
您需要从构建菜单中选择“部署”,然后将根据您的项目设置创建脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.