如何为Debian:Jessie构建.net核心应用程序

时间:2019-03-27 06:19:40

标签: linux asp.net-core asp.net-core-2.1 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

1 个答案:

答案 0 :(得分:2)

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

实际上,在line30中定义了18_Jan_2019_10_25_25.txt" 18_Jan_2019_10_31_25.txt" 24_Jan_2019_13_02_25.txt" 18_Mar_2019_10_25_25.txt" 18_Mar_2019_10_31_25.txt" 24_Mar_2019_13_02_25.txt" 25_Mar_2019_01_03_53.txt" 25_Mar_2019_01_21_44.txt" 25_Mar_2019_04_59_02.txt" 25_Mar_2019_05_57_06.txt" 25_Mar_2019_06_37_35.txt" 25_Mar_2019_07_10_07.txt" 19_Feb_2019_13_02_25.txt" 09_Jan_2019_09_02_25.txt" 09_Jan_2019_09_36_25.txt" 的{​​{1}}。但是正如您看到的between the line129 and Line233一样,没有这样的RID名称为alpine.3.7-x64

您需要改用RID