不能 运行 在 Monodevelop 上构建
Cannot run a build on Monodevelop
我刚从 Win10 迁移过来,所以我刚刚在我的 Lubuntu Linux 上安装了 Monodevelop IDE。在编写了一个快速的 Hello World 程序来测试 IDE 之后,我在输出控制台中得到了以下文本:
The framework 'Microsoft.NETCore.App', version '1.1.2' was not found.
- The following frameworks were found:
3.1.4 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=1.1.2&arch=x64&rid=ubuntu.19.10-x64
显然我有最新的 .NET 框架,但 Monodevelop 要求我安装它的旧版本。我不明白为什么,因为它是最新的 Monodevelop 版本(如下所述)
=== MonoDevelop ===
Version 7.8.4 (build 2)
Installation UUID: 9a688c83-deba-4ab3-bbac-7cdb3e8b4050
GTK+ 2.24.32 (Adwaita-dark theme)
=== Mono Framework MDK ===
Runtime:
Mono 6.8.0.123 (tarball Tue May 12 15:11:57 UTC 2020) (64-bit)
=== NuGet ===
Version: 4.8.2.5835
=== .NET Core ===
Runtime: /usr/share/dotnet/dotnet
Runtime Version: 3.1.4
SDK: /usr/share/dotnet/sdk/3.1.300/Sdks
SDK Version: 3.1.300
MSBuild SDKs: /usr/lib/mono/msbuild/15.0/bin/Sdks
=== Build Information ===
Release ID: 708040002
Git revision: 622db12503514afdb641c31615408bfe905a7312
Build date: 2019-07-17 17:02:07-04
=== Operating System ===
Linux
Linux 5.3.0-55-generic #49-Ubuntu SMP Thu May 21 12:47:19 UTC 2020 x86_64
有什么想法吗?
同样的,我通过修改文件“.csproj”解决了这个问题:
将 "netcoreapp1.1" 替换为 "netcoreapp3.1".
直接在monodevelop上没找到怎么修改
我刚从 Win10 迁移过来,所以我刚刚在我的 Lubuntu Linux 上安装了 Monodevelop IDE。在编写了一个快速的 Hello World 程序来测试 IDE 之后,我在输出控制台中得到了以下文本:
The framework 'Microsoft.NETCore.App', version '1.1.2' was not found.
- The following frameworks were found:
3.1.4 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=1.1.2&arch=x64&rid=ubuntu.19.10-x64
显然我有最新的 .NET 框架,但 Monodevelop 要求我安装它的旧版本。我不明白为什么,因为它是最新的 Monodevelop 版本(如下所述)
=== MonoDevelop ===
Version 7.8.4 (build 2)
Installation UUID: 9a688c83-deba-4ab3-bbac-7cdb3e8b4050
GTK+ 2.24.32 (Adwaita-dark theme)
=== Mono Framework MDK ===
Runtime:
Mono 6.8.0.123 (tarball Tue May 12 15:11:57 UTC 2020) (64-bit)
=== NuGet ===
Version: 4.8.2.5835
=== .NET Core ===
Runtime: /usr/share/dotnet/dotnet
Runtime Version: 3.1.4
SDK: /usr/share/dotnet/sdk/3.1.300/Sdks
SDK Version: 3.1.300
MSBuild SDKs: /usr/lib/mono/msbuild/15.0/bin/Sdks
=== Build Information ===
Release ID: 708040002
Git revision: 622db12503514afdb641c31615408bfe905a7312
Build date: 2019-07-17 17:02:07-04
=== Operating System ===
Linux
Linux 5.3.0-55-generic #49-Ubuntu SMP Thu May 21 12:47:19 UTC 2020 x86_64
有什么想法吗?
同样的,我通过修改文件“.csproj”解决了这个问题: 将 "netcoreapp1.1" 替换为 "netcoreapp3.1".
直接在monodevelop上没找到怎么修改