我想在linux上使用.Net Core并且拥有最新版本:
flutter run
但是当我想运行我的示例应用程序(只是剃刀模板)时:
> sudo pacman -Qs dotnet
local/dotnet-host 2.1.0-1
A generic driver for the .NET Core Command Line Interface
local/dotnet-runtime 2.1.0-1
The .NET Core runtime
local/dotnet-sdk 2.1.300-1
The .NET Core SDK
> dotnet --version
2.1.300
查看this issue,问题是用户没有安装适当的sdk /运行时版本,但这不是我的问题的原因,不是吗?
编辑:在github上查看dotnet-core repo后,我意识到MS现在使用aspnetcore-runtime-2.1.0软件包发布了asp.net核心支持(之前,它随核心运行时一起提供) )。 ArchLinux包> dotnet run
Using launch settings from /home/user/src/WebRepTrack/Properties/launchSettings.json...
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.
- Check application dependencies and target a framework version installed at:
/opt/dotnet/
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
不包含此更改!有关详细信息,请参见此处:
https://bugs.archlinux.org/task/58806