如何为 debian:jessie 构建 .net 核心应用程序

How to build .net core application for debian:jessie

我已经使用 .net 核心创建了一个示例应用程序。我需要为 debian:jessie os 构建应用程序。我有以下命令

dotnet restore MySampleApp.sln -r -debian:jessie-x64

dotnet build MySampleApp.csproj --verbosity q -c Release -r -debian:jessie-x64

但是它显示这样的错误信息

error : NETSDK1056: Project is targeting runtime '-debian:jessie-x64' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework.

但我可以 运行 使用 alpine Linux 相同的应用程序而不会出现任何错误

dotnet restore MySampleApp.sln -r alpine.3.7-x64

dotnet build MySampleApp.csproj --verbosity q -c Release -r alpine.3.7-x64

团队已提供a complete list for Runtime IDentifiers on GitHub

的确,在line30. But as you can see between the line129 and Line233中定义了alpine.3.7-x64RID,没有RIDdebian:jessie-x64

您需要改用 debian.8-x64