[英]How to build .net core application for debian:jessie
我使用 .net core 創建了一個示例應用程序。 我需要為 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
該團隊在 GitHub 上提供了運行時標識符的完整列表。
實際上,在line30 中定義了alpine.3.7-x64
的RID
。 但是正如您在 line129 和 Line233 之間所看到的,沒有這樣一個名為debian:jessie-x64
的RID
。
您需要改用debian.8-x64
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.