我在经营香草ASP。使用dnx的Net VNext hello world应用程序。当我执行“dnx.run”时,它运行得很好。但是,当我使用“dnu-publish”创建自包含的包(因此它创建了web.cmd)时,它无法在linux上运行,并出现错误
root@Xavier:~/Net/HelloWorldCore/bin/output# web.cmd
web.cmd: command not found
我厌倦了“chmod 777 web.cmd”,然后它无法识别dnx
root@Xavier:~/Net/HelloWorldCore/bin/output# chmod 777 web.cmd
root@Xavier:~/Net/HelloWorldCore/bin/output# ./web.cmd
./web.cmd: line 1: $'\r': command not found
./web.cmd: line 2: @dnx.exe: command not found
我使用的是Ubuntu 14.04
root@Xavier:~/dnvm list
Active Version Runtime Arch Location Alias
------ ------- ------- ---- -------- -----
1.0.0-beta4 coreclr x64 ~/.dnx/runtimes
1.0.0-beta5 mono ~/.dnx/runtimes default
1.0.0-beta6-12207 coreclr x64 ~/.dnx/runtimes
1.0.0-beta6-12207 mono ~/.dnx/runtimes
* 1.0.0-beta4 mono ~/.dnx/runtimes