use*_*624 4 c# archlinux .net-core asp.net-core
我想在Linux上使用.Net Core并具有最新版本:
> 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
Run Code Online (Sandbox Code Playgroud)
但是,当我想运行示例应用程序(仅剃刀模板)时:
> 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
Run Code Online (Sandbox Code Playgroud)
看这个问题,问题在于用户没有安装适当的sdk / runtime版本,但这不是我的问题的原因,不是吗?
编辑:在github上的dotnet-core仓库中,我意识到MS现在使用包aspnetcore-runtime-2.1.0附带了asp.net核心支持(而以前,它是随核心运行时一起提供的)。ArchLinux软件包dotnet-runtime 不包含此更改!请参阅此处以获取更多详细信息:https :
//bugs.archlinux.org/task/58806
| 归档时间: |
|
| 查看次数: |
669 次 |
| 最近记录: |