从命令行构建应用 [英] Build app from command line
本文介绍了从命令行构建应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我的Windows Phone 7应用程序是通过Visual Studio的编译按钮成功构建的.
My windows phone 7 application is successfully built from compilation button of Visual Studio.
但是,当我尝试从命令行进行编译时,出现了一些错误:
But, when I try to compile from command line, i get some errors :
CS2001错误:不可能,麻烦的来源 |
'< project path> \ obj \ Debug \ App.gics' |
error CS2001: Impossible de trouver le fichier source |
'<project path>\obj\Debug\App.g.i.cs' |
推荐答案
TheFrancisOne,
以下过程将起作用.我尝试使用已安装的完整版VS2010进行此操作.
1.发布Visual Studio命令提示符(2010)
2.浏览到包含.SLN文件的文件夹
3.使用命令行进行构建;在下面的示例中,MyApp是您的解决方案的名称:
MSBuild MyApp.sln/t:重建/p:配置=发布
希望这会有所帮助,
标记
Hi TheFrancisOne,
The following process will work. I tried this using the full version of VS2010 installed.
1. Launch a Visual Studio Command Prompt (2010)
2. Browse to the folder that contains your .SLN file
3. Build using a command line; in the example below, MyApp is the name of your solution:
MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release
Hope this helps,
Mark
这篇关于从命令行构建应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文