简体   繁体   English

Visual Studio 2010数据库项目部署

[英]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.

相关问题 如何在Visual Studio 2010中使用我的设置和部署项目部署SQL Server数据库? - How can I deploy the SQL server database with my setup and deployment project in Visual Studio 2010? 从Visual Studio 2010部署项目写入HKLM - Write to HKLM from Visual Studio 2010 deployment project Visual Studio 2010部署错误 - Visual Studio 2010 deployment error 从Visual Studio 2010解决方案中卸载.vdproj(Visual Studio部署项目) - Unload .vdproj (visual studio deployment project) from visual studio 2010 solution 使用c#将Access数据库添加到Visual Studio 2010中的项目中 - Adding Access Database to Project in Visual Studio 2010 using c# 将数据库从Django Project(sqlite)移至Visual Studio 2010 - Move database from Django Project (sqlite) to Visual Studio 2010 Visual Studio 2010项目到Visual Studio 2012 - Visual Studio 2010 project to Visual Studio 2012 使用Visual Studio 2010创建“最小部署程序包” - Create a “minimum deployment package” with Visual Studio 2010 在2010和2012年开发和部署Visual Studio插件 - Development and deployment of visual studio addin for 2010 & 2012 如何在Visual Studio 2010安装和部署项目中包括第三方exe? - How to include third party exe in visual studio 2010 setup and deployment project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM