【问题标题】:Simple .net core app won't build on linux简单的 .net 核心应用程序不会在 linux 上构建
【发布时间】:2020-01-17 21:55:14
【问题描述】:

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

[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 Core SDK,而且我安装的是 3.1.1 版本。

我不知道为什么它没有构建。

【问题讨论】:

    标签: c# linux asp.net-core .net-core


    【解决方案1】:

    Arch Linux bugtracker 中有一个针对 arch-x64 问题的补丁:

    https://bugs.archlinux.org/task/65128

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-05
      • 2020-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多