在Visual Studio发布计划 [英] Publish Program in Visual Studio

查看:154
本文介绍了在Visual Studio发布计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来使用Visual Studio,和我试图找出如何发布我的计划,所以我可以移动它其他的电脑,并从那里运行它。我不知道这是否有差别,但在我的解决方案三个项目。如果我公布这件事,我还是继续能够开发的原始文件等?

I'm new to using Visual Studio, and I'm trying to figure out how to 'publish' my program so I can move it other's computers and run it from there. I'm not sure if it makes a difference, but there are three projects in my solution. And if I publish it, will I still continue to be able to develop the original files etc?

非常感谢!

推荐答案

好了,你写你的代码,调试它,现在你要分发...

Ok, so you've written your code, debugged it and now you want to distribute it...

当您使用Visual Studio每个项目的编译的输出是手动指定,或者默认的文件夹中产生,在文件夹与建设解决方案项目根文件夹。在此文件夹是其持有的相应版本的输出(例如子文件夹调试文件夹包含调试编译输出)。

When you build a solution using Visual Studio the compiled output of each project is produced in a folder which is either specified manually, or, by default, in a bin folder relative to the projects root folder. Within this folder are subfolders which hold the output for a corresponding build (for instance the Debug folder contains the Debug compilation output).

如果你有三个项目再比如,假设一个是可执行的应用程序和其他两个是在其上的应用项目相关的动态链接库,从后者两个项目编译输出将自动复制到编译输出文件夹的应用程序,这意味着你只需要出货的是这个文件夹中(与其他任何你真的知道需要沿)。

If you have three projects then, for example, let's assume one is an executable application and the other two are dynamic link libraries on which the application project is dependent, the compiled output from the latter two projects will automatically be copied to the applications compiled output folder, meaning you only need to ship what is in this folder (along with anything else you actually know is required).

对于(粗糙)的文件夹图形,试图想象我在说什么:

For a (rough) folder graph to try and visualise what I'm saying:

SolutionFolder\
    ApplicationProjectFolder\
        Bin\                  <- contains overall output
            Debug\            <- the compilation you develop with
            Release\          <- the compilation you distribute (after testing)
    DynamicLinkLibrary0Folder\
        Bin\
            Debug\            <- automatically copied to 'ApplicationProjectFolder\Bin\Debug'
            Release\          <- automatically copied to 'ApplicationProjectFolder\Bin\Release'
    DynamicLinkLibrary1Folder\
        \Bin
            Debug\            <- as above
            Release\          <- as above

您可以继续发行,是的,当然后你的代码工作,但你很难指望,应用程序的用户拥有最新的更改,而无需重新分配整个事情,或更新/补丁等等

You can continue to work on your code after distributing, yes, of course, but you can hardly expect the users of the application to have your latest changes without redistributing the whole thing, or updating/patching et cetera.

当然,这个解决方案是最简单的形式 - 最好你倒是希望有一个安装项目的解决方案,这是最后的分配最终产品的一部分。

Of course, this solution is the simplest form - ideally you'd want an installer project as part of the solution, which is the final distributable end-product.

正如我前面所说,看来你可能需要知道赫克了很多比这更胜任,自信出发,我可以在这里提到的各个方面,无疑说明更多细节,但它有停止的地方。希望这可以让你开始,虽然。

As I said above, it seems you may need to know a heck of a lot more than this to proceed competently and confidently, and I could explain further details on each aspect mentioned here, no doubt, but it has to stop somewhere. Hope this gets you started, though.

这篇关于在Visual Studio发布计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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