简体   繁体   English

如何在Visual Studio中从CS文件为NUnit控制台运行程序创建DLL文件

[英]How to create a dll-file from cs-files for nunit-console runner in visual studio

I have many tests in the .cs format. 我有许多.cs格式的测试。 When I want to run nunit-console C:\\Users\\...\\Desktop\\web-testing\\xxxxxx.dll /output="C:\\Users\\...\\Desktop\\result.xml" , I need a dll. 当我想运行nunit-console C:\\Users\\...\\Desktop\\web-testing\\xxxxxx.dll /output="C:\\Users\\...\\Desktop\\result.xml" ,我需要一个dll 。 But how to create this file? 但是如何创建这个文件?

Using the exe-file 使用exe文件

nunit-console  C:\Users\...\Desktop\web-testing\xxxxxx.exe /output="C:\Users\...\Desktop\result.xml"

is working. 正在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 项目可以正常编译,可以在Visual Studio中运行测试,但是nunit-console“无法加载文件或程序集……” - Project compiles fine, tests run inside visual studio, but nunit-console “Could not load file or assembly …” Nunit-console-.csproj文件中应该有什么? - Nunit-console - what is expected in .csproj file? 在visual studio 2017中传递参数,如nunit-console params cli - Pass parameters in visual studio 2017 like nunit-console params cli 如何从命令行从nunit-console运行nunit 2测试? - How do I run nunit 2 tests from nunit-console from the command line? NUnit 3.0 是否有 nunit-console-runner.dll? - Is there a nunit-console-runner.dll for NUnit 3.0? 无法通过nunit-console从程序集加载,但可以在Xamarin Studio中使用 - Cannot load from assembly via nunit-console but works in Xamarin Studio 如何检测到包含在 new.csproj SDK 格式中的 .cs 文件? - How .cs-files detected for inclusion in the new .csproj SDK format? 运行测试时无法通过Nunit-console runner连接到网络驱动器 - Unable to connect to network drive through Nunit-console runner when running tests 不使用Visual Studio将.cs文件编译为dll - Compiling .cs file into dll without Visual Studio 使用Visual Studio DLL格式化.cs文件 - Use Visual Studio DLL to format a .cs file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM