Nuget 发布时输出中不显示runtime.osx.10.10-x64.corecompt.System.Drawing
为什么一个nuget包丢失了 我有一个带有nuget软件包的项目Nuget 发布时输出中不显示runtime.osx.10.10-x64.corecompt.System.Drawing,nuget,.net-core,Nuget,.net Core,为什么一个nuget包丢失了 我有一个带有nuget软件包的项目 CoreCompat.System.Drawing, runtime.osx.10.10-x64.CoreCompat.System.Drawing和 runtime.linux-x64.CoreCompat.System.Drawing 当我完成任务时 dotnet restore dotnet build dotnet publish -c release 顺序 输出中同时显示CoreCompat.System.Dra
CoreCompat.System.Drawing
,runtime.osx.10.10-x64.CoreCompat.System.Drawing
和runtime.linux-x64.CoreCompat.System.Drawing
当我完成任务时
dotnet restore
dotnet build
dotnet publish -c release
顺序输出中同时显示
CoreCompat.System.Drawing
和runtime.linux-x64.CoreCompat.System.Drawing
runtime.osx.10.10-x64.CoreCompat.System.Drawing
找不到。runtime.osx.10.10-x64.CoreCompat.System.Drawing
和runtime.linux-x64.CoreCompat.System.Drawing
是特定于平台的。根据你的回答,我猜你是在Linux机器上发布的?您是否在项目文件中设置了RuntimeIdentifier
,它是否设置为Linux变体?在这种情况下,输出中不包括本机macOS依赖项
作为旁注,您还可以将
CoreCompat.System.Drawing
替换为“官方”System.Drawing.Commonruntime.osx.10.10-x64.CoreCompat.System.Drawing
和runtime.linux-x64.CoreCompat.System.Drawing
是特定于平台的。根据你的回答,我猜你是在Linux机器上发布的?您是否在项目文件中设置了RuntimeIdentifier
,它是否设置为Linux变体?在这种情况下,输出中不包括本机macOS依赖项
作为旁注,您还可以将CoreCompat.System.Drawing
替换为'official'System.Drawing.Common
您可以显示项目文件吗?您可以显示项目文件吗?