从CMD编译并创建Build for Coded UI [英] Compile and create Build for Coded UI from CMD

查看:70
本文介绍了从CMD编译并创建Build for Coded UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Coded UI测试(通过Handed Coding),其中有一些脚本可以自动化.net应用程序。

I am creating a Coded UI Test(via Handed Coding), where by there is some script to automate a .net application.

我想知道有没有办法从命令行为我的项目编译和生成DLL文件?

I wanted to know is there a way to compile and generate the DLL files for my project from the command line??

提前致谢!!

问候,

Kallol

推荐答案

嗨Kallol,

Hi Kallol,

感谢您发帖。

>>我想知道有没有办法从命令行为我的项目编译和生成DLL文件?

这是一个很好的问题。但是,我可以问你想用cmd构建项目的原因是什么?

It's a good question. But may I ask for what reason you want to build the project by cmd?

MSbuild 可能可以(详情你可以去 MSbuild论坛询问他们的建议),但这很复杂,
我从未尝试过,也不建议

MSbuild probably could(for details you could go to MSbuild forum to ask their advice), but it's complicated, I never tried it and it's not recommended either.

要由MSbuild构建,你将面临的另一个问题是你需要复制dll,因为一些dll可能依赖于你不复制的其他一些dll。

To build to by MSbuild, you’ll face another issue is that you need copy dlls, because some dlls may have dependence on some other dlls that you don’t copy.

如果您确实不想安装VS,请安装必要的测试代理。例如,如果您使用VS2017版本,则需要下载测试代理2017版本。

If you really don't want to install VS, install the test agent that is the essential. For example, if you use the VS2017 Version, so you need to download the test agent 2017 version.

安装后,检查机器中是否存在所有引用的dll 即可。您需要确保所有引用的dll都存在。如果这没有帮助,我建议您下载VS企业版以运行编码的UI测试

After you install it, check if all the referenced dlls exist in your machine. You need to make sure that all the referenced dlls exist. If that does not help, I suggest you download VS enterprise edition to run coded UI test.

感谢您的理解。

  

  

祝你好运,

Fletcher


这篇关于从CMD编译并创建Build for Coded UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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