如何在Visual Studio 2010中运行命令 [英] How to run command in Visual Studio 2010

查看:241
本文介绍了如何在Visual Studio 2010中运行命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在视觉Stidio 2010中运行命令

命令,例如,



nuget install packages.config



谢谢。

解决方案

你有视觉Studio 2010已标记但未说明感兴趣的语言,并且未提供上下文。我主要是C ++文化,因此将从这个角度描述事物。您可以使用命令行逻辑作为构建过程的一部分(即,在构建目标时)或作为独立工具(独立于构建)。



您可以将特定命令作为工具运行(如评论部分中的Richard所述)。点击工具 - >用于定义预打包命令的外部工具。构建命令行并为工具命名。在命令行中,您可以使用构建配置符号的子集(即。


(SolutionDir),


(配置)

Hi,

How can I run command in visual Stidio 2010
command like,

nuget install packages.config

Thanks.

解决方案

You have Visual Studio 2010 tagged but didn't say which language(s) of interest, and have not provided context. I am mostly C++ literate so will describe things from that point of view. You can use command line logic as part of the build process (ie. when building target(s)) or as a standalone tool (independent of a build).

You can run specific commands as a tool (as described by Richard in the comments section). Click Tools -> External Tools to define a prepackaged command. Build a command line and give your tool a name. In the command line, you can use a subset of the build config symbols (ie.


(SolutionDir),


(Configuration)


这篇关于如何在Visual Studio 2010中运行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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