【问题标题】:Improper behavior for command dnx Run & dnx web命令 dnx Run 和 dnx web 的行为不当
【发布时间】:2016-04-23 11:27:47
【问题描述】:

我在 Ubuntu 14.04(在我的 VMWare 上)上使用 Visual Studio Code 创建了一个简单的 WEB API 应用程序。我完成了安装和配置 .NET 核心、VS Code (V 1.0.0) 和单声道库和包的所有先前步骤。我的package.json 文件包含以下参数:

"commands": { "web": "Microsoft.AspNet.Server.Kestrel" }

当我使用'ctrl+shift+p'来获取命令托盘时,我可以得到dnx:Run Command,但是在选择这个之后,我没有得到dnx web - (MyApplication)。当我尝试使用dnx web 从终端运行相同的应用程序时。我得到了正确的结果:

Hosting environment: Production Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down.

同样的应用程序,我搬到了我的 Windows 7 环境,我得到了 VS Code 所期望的一切。我不必从命令提示符显式运行。

是 VS Code 在 Ubuntu Vs Windows 环境下的行为还是有什么问题。

【问题讨论】:

  • 我将尝试再次设置 DNX 和 OmniSharp。我正在运行 Ubuntu 12.04 LTS。如果我有任何成功,我会发布。
  • 此时我在单击 dnx: Run 后为我的示例应用程序获取 dnx: Run Command 和 dnx: Web (HelloWeb)。但是单击 dnx: Web 没有任何作用,而 dnx web 从终端运行服务器,如您之前提到的。

标签: ubuntu asp.net-core visual-studio-code


【解决方案1】:

OmniSharp 对此有一个新的未解决问题:

'dnx web' doesn't execute in VSCode 1.0.0 on OpenSuSe Leap 42.1 #215

您可能想要跟踪它。

【讨论】:

  • 不幸的是,我在 GitHub 上的 VS Code 上提出了同样的问题,但它被重定向到 OmniSharp。 Here is the link
  • GJSmith3rd,你有没有遇到任何解决方案?
猜你喜欢
  • 2016-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多