dnx 和 asp.net 5 编译分发
dnx and asp.net 5 compiling for distribution
当我使用 dnx 时,我可以 运行 命令 dnu build
从我的控制台应用程序生成一个 DLL。我怎样才能在另一台计算机上重新使用它,例如linux?据我了解,我必须包含 project.json 以便在 linux 中我将 运行 dnu restore
但我不明白如何 运行 它没有代码因为当我 运行 dnx . run
我得到
'ConsoleApplication' does not contain a static 'Main' method suitable
for an entry point
显然您可以将 dnx --lib path/to/output/dir . run
与您的 project.json 一起使用,它会从该文件夹加载您的 dll,服务器上没有可用的源代码。
发布此内容可能会对某人有所帮助
当我使用 dnx 时,我可以 运行 命令 dnu build
从我的控制台应用程序生成一个 DLL。我怎样才能在另一台计算机上重新使用它,例如linux?据我了解,我必须包含 project.json 以便在 linux 中我将 运行 dnu restore
但我不明白如何 运行 它没有代码因为当我 运行 dnx . run
我得到
'ConsoleApplication' does not contain a static 'Main' method suitable for an entry point
显然您可以将 dnx --lib path/to/output/dir . run
与您的 project.json 一起使用,它会从该文件夹加载您的 dll,服务器上没有可用的源代码。
发布此内容可能会对某人有所帮助