如何从编码的UI中创建.exe可执行文件? [英] How can I make a .exe executable from coded UI?

查看:156
本文介绍了如何从编码的UI中创建.exe可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只得到一个.dll。当我将输出类型更改为Windows应用程序时,代码崩溃说"filenotfoundexception未处理"。但如果我在课程应用程序中运行
测试,一切都正常运行,但我只得到.dll。 

我知道如果我想创建.exe文件的输出我的c#应该是一个"windows应用程序"。而且Windows应用程序需要.main文件。
我创建了一个(.main)文件,这是我放入的文件。在我编写所有内容之前,我的编码UI项目名称是tester1。 

使用tester1; 

class testclass

{

      static void Main(string [] args){

     static void Main(string[] args){

          system.conole.writeline(args.lenth);

         system.conole.writeline(args.lenth);

          tester1.codeduitest1 loal_instance;

         tester1.codeduitest1 loal_instance;

          local_instance = new codeduitest1();

         local_instance = new codeduitest1();

          local_instance.tester1();

         local_instance.tester1();

}

}

如何解决此问题并创建可执行文件? 

推荐答案

>> 我只得到一个.dll。

您的意思是在运行
编码的ui测试项目后,您获得了 .dll 文件

Do you mean that you got .dll file after you running the coded ui test project?

>>我该如何解决这个问题?并创建一个可执行文件? 

如果项目是Coded UI测试,那么寿ld生成 .dll 文件,该文件可以通过
Mstest VSTest 执行。没有生成.exe文件。

If the project is Coded UI testing, it should generate .dll file, which could be executed via Mstest or VSTest. There is no .exe file generated.

如果我误解,请随时告诉我。 

Please feel free to let me know if I misunderstood. 

 

祝你好运,

Fletcher


这篇关于如何从编码的UI中创建.exe可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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