dotnet 运行 报告 '.NETFramework,Version=v4.8 were not found'
dotnet run reporting '.NETFramework,Version=v4.8 were not found'
我在 Mac OS/usr/local/share/dotnet/sdk/5.0.300/Microsoft.Common.CurrentVersion.targets(1216,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 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/tommie/projects/zzz/zzz/zzz.csproj]
上 运行 'dotnet run' 时收到以下错误
我的代码来自 Visual Studio 8.9,在 .net 框架上最多只支持 4.8
但是,当我查看 'https://aka.ms/msbuild/developerpacks' 4.8 时,它不可用。只有 5.0 可用。
Visual Studio 8.10 显然支持 5.0,但尚未正式发布。
我 运行 在我的 Jenkins 服务器上使用 MSBUILD 执行作业时遇到了这个确切的错误:error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application
。关于 Visual Studio 和 MacOS 有一些来回的争论,这让事情有点混乱,但对我来说,按照 Alsein 的建议安装“.NET Framework 4.8 Developer Pack Offline Installer”纠正了我的问题。 Link 这里 https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer
我在 Mac OS/usr/local/share/dotnet/sdk/5.0.300/Microsoft.Common.CurrentVersion.targets(1216,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 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/tommie/projects/zzz/zzz/zzz.csproj]
我的代码来自 Visual Studio 8.9,在 .net 框架上最多只支持 4.8 但是,当我查看 'https://aka.ms/msbuild/developerpacks' 4.8 时,它不可用。只有 5.0 可用。 Visual Studio 8.10 显然支持 5.0,但尚未正式发布。
我 运行 在我的 Jenkins 服务器上使用 MSBUILD 执行作业时遇到了这个确切的错误:error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application
。关于 Visual Studio 和 MacOS 有一些来回的争论,这让事情有点混乱,但对我来说,按照 Alsein 的建议安装“.NET Framework 4.8 Developer Pack Offline Installer”纠正了我的问题。 Link 这里 https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer