Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2015 在windows中发布的ASP.NET 5 web应用程序能否在linux上运行?_Visual Studio 2015_Asp.net Core_Visual Studio Code_Dnx_Kestrel Http Server - Fatal编程技术网

Visual studio 2015 在windows中发布的ASP.NET 5 web应用程序能否在linux上运行?

Visual studio 2015 在windows中发布的ASP.NET 5 web应用程序能否在linux上运行?,visual-studio-2015,asp.net-core,visual-studio-code,dnx,kestrel-http-server,Visual Studio 2015,Asp.net Core,Visual Studio Code,Dnx,Kestrel Http Server,我有一个在Visual Studio 2015中使用默认web应用程序模板创建的ASP.NET 5 web应用程序示例。 我的目标是dnx451 clr 1.0.0-beta5(x64),并且能够使用kestrel web服务器在我的windows box上成功编译、发布和托管此应用程序。 我发现发布的目录有一个windows脚本文件(kestrel.cmd)和一个bash脚本文件。 我的理解是,在这种情况下,如果在linux机器上设置了适当的DNX运行时,发布的web应用程序也应该在linux

我有一个在Visual Studio 2015中使用默认web应用程序模板创建的ASP.NET 5 web应用程序示例。
我的目标是dnx451 clr 1.0.0-beta5(x64),并且能够使用kestrel web服务器在我的windows box上成功编译、发布和托管此应用程序。
我发现发布的目录有一个windows脚本文件(kestrel.cmd)和一个bash脚本文件。
我的理解是,在这种情况下,如果在linux机器上设置了适当的DNX运行时,发布的web应用程序也应该在linux系统上按原样工作。

我的理解正确吗

简单的回答是:是的。它可以在Linux和OS X上运行。有关Linux和OS X,请参阅。

只要不将目标更改为dnxcore50,答案是否定的。dnx451将永远无法在Mac或Linux上使用,因为它基于完整的桌面.net框架

只要使用Mono编译,它也应该可以在Linux和OS X上使用。