[英]Build Error after Upgrading microsoft.net.sdk.functions
My project uses .net framework 4.8.我的项目使用 .net 框架 4.8。 After upgrading microsoft.net.sdk.functions from version 1.0.24 to 3.0.1, the build on my local machine works fine, but there are some errors on the build on VSO pipeline:将 microsoft.net.sdk.functions 从版本 1.0.24 升级到 3.0.1 后,我本地机器上的构建工作正常,但在 VSO 管道上构建时出现一些错误:
microsoft.net.sdk.functions\3.0.1\build\microsoft.net.sdk.functions.build.targets(41,5): It was not possible to find any compatible framework version microsoft.net.sdk.functions\3.0.1\build\microsoft.net.sdk.functions.build.targets(41,5):找不到任何兼容的框架版本
The specified framework 'Microsoft.NETCore.App', version '3.0.0' was not found找不到指定的框架“Microsoft.NETCore.App”,版本“3.0.0”
microsoft.net.sdk.functions\3.0.1\build\microsoft.net.sdk.functions.build.targets(41,5): metadata generation failed. microsoft.net.sdk.functions\3.0.1\build\microsoft.net.sdk.functions.build.targets(41,5):元数据生成失败。
There is no version 3.0.0 for Microsoft.NetCore.App nuget package. Microsoft.NetCore.App nuget package 没有 3.0.0 版本。 Why would the error ask for that version?为什么错误会要求该版本? Also how can I fix the error?另外我该如何修复错误?
Looking at the package on NuGet, version 3.0.1 is intended for use with .NET Core 3.0 and higher applications, not .NET Framework applications. Looking at the package on NuGet, version 3.0.1 is intended for use with .NET Core 3.0 and higher applications, not .NET Framework applications. Version 1.0.38 appears to be the latest version with .NET Framework support (4.6 and higher).版本 1.0.38 似乎是支持 .NET 框架(4.6 和更高版本)的最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.