【发布时间】: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