【发布时间】:2021-12-04 09:18:00
【问题描述】:
我正在尝试在https://github.com/jstedfast/MimeKit 中运行基准测试并遇到版本问题。我在 Mac 上,使用 vscode 并安装了带有自制软件的 .NET SDK。它给了我 dotnet-sdk-5.0.401-osx-x64.pkg。当我尝试在 Benchmarks 目录中运行 dotnet build 时,我得到了
% dotnet build
Microsoft (R) Build Engine version 16.11.0+0538acc04 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
MimeKit -> /Users/chris.topinka/smarsh-vscode-dev/MimeKit/MimeKit/bin/Debug/net50/MimeKit.dll
/usr/local/share/dotnet/sdk/5.0.401/Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.5 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/Users/chris.topinka/smarsh-vscode-dev/MimeKit/Mono.Data.Sqlite/Mono.Data.Sqlite.csproj]
Build FAILED.
/usr/local/share/dotnet/sdk/5.0.401/Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.5 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/Users/chris.topinka/smarsh-vscode-dev/MimeKit/Mono.Data.Sqlite/Mono.Data.Sqlite.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.84
有没有办法安装正确的版本或将项目重新定位到 5?谢谢。
【问题讨论】:
-
我现在结束了gitter.im/jstedfast/MimeKit。谢谢
标签: .net macos visual-studio-code benchmarking mimekit