部署项目...如果目录中没有内容目录,如何将其包含在部署安装文件中? [英] Deploying a project...How can I incorporate a folder of contents in the deployment install file if they are not in the project?

查看:67
本文介绍了部署项目...如果目录中没有内容目录,如何将其包含在部署安装文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署第一个项目的beta版本,并且想知道是否有人对如何在部署中包括一个单独的文件文件夹有任何建议(一旦安装完成,它们将存储在C:\驱动器中)已完成,位于安装目录之外).在发布之前,是否将它们添加到属性向导的引用路径区域中?我是项目部署的新手.我目前正在使用Visual Studio2012.

另外,如何部署SQL Server Compact数据库?当我尝试在另一台计算机上安装部署时,它告诉我数据库的路径无效.它仍然引用项目中的路径名.

I am trying to deploy a beta of my first project and was wondering if anyone had any suggestions of how to include a separate folder of files in the deployment (they are to be stored on the C:\ drive once the install is completed, outside of the installation directory). Do I add them in the reference paths area of the properties wizard prior to publishing? I''m new to deployment of projects. I''m currently using Visual Studio 2012.

Also, how can I deploy a SQL Server Compact database? When I try to install a deployment on another computer, it tells me that the path to the database is invalid. It''s still referencing the path name in the project.

推荐答案

您可以将任何文件添加到安装中,即使这些文件不在用于构建的项目中该软件.您可以在创建部署项目时添加此类目录和文件.例如,如果您从Visual Studio随附的项目模板安装和部署"创建部署项目,您将立即在项目树(作为解决方案资源管理器的一部分)及其上下文菜单中看到这种可能性. >
我认为,最推荐的SQL Server部署方式是使其成为您产品的先决条件.这样可以解决所有可能的许可问题以及用户已经安装了相同或兼容服务器的情况,因此也为用户提供了更多便利和灵活性.

—SA
You can add any files to the installation, even if they are not in your project used to build the software. You can add such directory and files when you create a deployment project. For example, if you create a deployment project from the project template "Setup and Deployment" which comes with Visual Studio, you will immediately see such possibility in the project tree (as a part of Solution Explorer) and its context menus.

I think the most recommended way of deploying of the SQL Server is making it a prerequisite for your product. This can resolve all possible licensing issues and the cases when a user already has the same or compatible server installed, so it gives more convenience and flexibility to your user as well.

—SA


这篇关于部署项目...如果目录中没有内容目录,如何将其包含在部署安装文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆