首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >简单的.net核心应用不能在linux上构建

简单的.net核心应用不能在linux上构建
EN

Stack Overflow用户
提问于 2020-01-18 05:55:14
回答 1查看 421关注 0票数 0

我有以下简单的应用程序。当我尝试构建它时,我得到了以下错误:

代码语言:javascript
运行
复制
[jwan@xps datamigrator]$ dotnet --list-sdks
3.1.100 [/usr/share/dotnet/sdk]
[jwan@xps datamigrator]$ dotnet build
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]

Build FAILED.

/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(88,5): error NETSDK1083: The specified RuntimeIdentifier 'arch-x64' is not recognized. [/home/jwan/code/datamigrator/DataMigrator.csproj]
    0 Warning(s)
    3 Error(s)

Time Elapsed 00:00:00.70
[jwan@xps datamigrator]$ 

如您所见,我已经安装了.NET核心SDK,并且我已经安装了3.1.1版。

我不确定为什么它不能构建。

EN

回答 1

Stack Overflow用户

发布于 2020-01-18 08:28:20

在Arch Linux错误跟踪器中有一个针对arch-x64问题的补丁: https://bugs.archlinux.org/task/65128

发现于https://github.com/jellyfin/jellyfin/issues/2243

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59795338

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档