C#控制台应用程序部署 [英] C# console app deployment

查看:269
本文介绍了C#控制台应用程序部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用VS2008临我的本地机器上开发一个简单的C#控制台应用程序。我想知道如何部署这一解决方案到网络共享文件夹?

I have a simple C# console application developed on my local machine using VS2008 Pro. I want to know how to deploy this solution onto a network share folder?

一个类似的Java控制台程序已经在相同的网络共享文件夹放置(作为一个JAR文件) 。用户只需打开命令提示符,导航到共享文件夹,输入Java的罐子programName.jar inputParameter1 inputParameter2

A similar Java console program is already placed (as a JAR file) in the same network share folder. Users simply open command prompt, navigate to shared folder and type "java -jar programName.jar inputParameter1 inputParameter2"

我怎样才能实现与.NET一样吗?

How can I achieve the same with .NET?

推荐答案

您可以exe文件拷贝过来自己,转到你的源代码目录的bin文件夹,并将在那里

You can copy the exe over yourself, go to the bin folder in the directory your source code is in and copy it there.

也可以单击生成菜单,然后使用发布菜单项。这将允许你进入到网络共享和Visual Studio将内置应用程序复制到文件夹,你的路径。

or you can click the BUILD menu and use the PUBLISH menu item. This will allow you to enter the path to your network share and visual studio will copy the built app to the folder for you.

这篇关于C#控制台应用程序部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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