简体   繁体   English

是否可以将MsTest项目构建为独立的可执行文件? 怎么样?

[英]Is it possible to build an MsTest project into a self-contained executable? How?

I can do so using MbUnit framework, but I cannot force everyone to install it (please do not ask); 我可以使用MbUnit框架来做到这一点,但是我不能强迫所有人都安装它(请不要问)。 everybody already has mstest.exe as well as the library. 每个人都已经有了mstest.exe和库。

http://www.gallio.org/oldwiki/MbUnit/TestExecutionUsingSelfExecutableTestAssemblies.html http://www.gallio.org/oldwiki/MbUnit/TestExecutionUsingSelfExecutableTestAssemblies.html

We do not even run unit tests yet, so the easiest way to cram it in is to reuse an existing project. 我们甚至还没有运行单元测试,因此最简单的方法是重用现有项目。 If it gets harder than that, then we will likely not have a test coverage for a while. 如果变得比这困难,那么我们很可能将暂时没有测试内容。

Looking forward to gaining some faith in MS Test. 期待对MS Test有所信心。

There is no way to run MSTest without Visual Studio. 没有Visual Studio,就无法运行MSTest。 It is designed to run using the IDE or using a Build server that had Visual Studio installed. 它旨在使用IDE或安装了Visual Studio的构建服务器运行。

暂无
暂无

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

相关问题 引用的项目是一个非独立的可执行文件。 自包含的可执行文件不能引用非自包含的可执行文件 - The referenced project is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable 检测是否从已发布的自包含可执行文件运行 - Detect if running from published self-contained executable .NET 6.0 控制台应用程序作为独立的单文件可执行文件 - .NET 6.0 Console app as a self-contained single file executable 如何在内部使用IronPython引用自包含的C#类库项目(Visual Studio 2010) - How to refer self-contained C# class library project with IronPython inside (Visual Studio 2010) “不支持”在不指定 RuntimeIdentifier 的情况下构建或发布自包含应用程序 - It is “not supported” to build or publish a self-contained application without specifying a RuntimeIdentifier 独立的普通纪念品 - Self-contained generic memento 如何配置独立的单文件程序? - How to configure self-contained single-file program? .NET Core 自包含发布引用 - 如何删除未使用的? - .NET Core self-contained publish references - how to remove unused? 如何使用 self-contained=false 从源创建 MSIX pckage - How to create an MSIX pckage from source with self-contained=false 关闭 Visual Studio 后生成的自包含可执行文件无法运行 - Generated self-contained executable file failed to run after I close Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM