简体   繁体   English

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

[英]How to build .net core application for debian:jessie

I have created a sample application using .net core.我使用 .net core 创建了一个示例应用程序。 I need to build the application for debian:jessie os.我需要为 debian:jessie os 构建应用程序。 I have following commands我有以下命令

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

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

But it shows error message like this但它显示这样的错误消息

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.

But I can run the same application using alpine Linux without any error但是我可以使用 alpine Linux 运行相同的应用程序而没有任何错误

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

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

The team has provided a complete list for Runtime IDentifiers on GitHub .该团队在 GitHub 上提供运行时标识符的完整列表

Indeed, there's a RID of alpine.3.7-x64 defined in line30 .实际上,在line30 中定义了alpine.3.7-x64RID But as you can see between the line129 and Line233 , there's no such a RID whose name is debian:jessie-x64 .但是正如您在 line129 和 Line233 之间所看到,没有这样一个名为debian:jessie-x64RID

You need to use debian.8-x64 instead.您需要改用debian.8-x64

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM