简体   繁体   English

在Asp.net核心中,dotnet.exe publish命令无法生成.exe文件

[英]In Asp.net core , dotnet.exe publish command , fails to generate a .exe file

I download the Project opensourced at github location https://github.com/aspnet/MusicStore/tree/dev/test/E2ETests 我在github位置https://github.com/aspnet/MusicStore/tree/dev/test/E2ETests下载了开源项目

When I try to publish the project using below command, it fails to generate E2ETest.exe file. 当我尝试使用以下命令发布项目时,它无法生成E2ETest.exe文件。

    dotnet.exe publish -o c:\..\E2EClient -c Release

Kindly can anyone help me with the same , I want to deploy the Published folder onto another machine. 好的,任何人都可以帮助我,我想将Published文件夹部署到另一台计算机上。

Tests are not compiled to an .exe - note that they don't have an entry point (ie Main method). 测试未编译为.exe,请注意,它们没有入口点(即Main方法)。 They are compiled to a dll and then are being run with the xunit runner. 它们被编译为dll,然后与xunit运行程序一起运行。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM