【问题标题】:dnx and asp.net 5 compiling for distributiondnx 和 asp.net 5 编译分发
【发布时间】:2015-07-27 12:24:52
【问题描述】:

当我使用 dnx 时,我可以运行命令 dnu build,它会从我的控制台应用程序生成一个 DLL。我如何在另一台计算机上重新使用它,例如linux?据我了解,我必须包含 project.json 以便在 linux 中运行 dnu restore 但我无法理解没有代码如何运行它,因为当我运行 dnx . run 时,我得到了

“ConsoleApplication”不包含适合的静态“Main”方法 入口点

【问题讨论】:

    标签: asp.net asp.net-core dnx


    【解决方案1】:

    显然,您当然可以将dnx --lib path/to/output/dir . run 与您的 project.json 一起使用,它会从该文件夹加载您的 dll,而服务器上没有可用的源代码。

    发布此内容可能对某人有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-25
      相关资源
      最近更新 更多