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

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

问题描述

我在本地机器上使用 VS2008 Pro 开发了一个简单的 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 -jar 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.

或者您可以单击 BUILD 菜单并使用 PUBLISH 菜单项.这将允许您输入网络共享的路径,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天全站免登陆