简体   繁体   English

升级 microsoft.net.sdk.functions 后生成错误

[英]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.

相关问题 Azure 函数 - Microsoft.NET.Sdk.Functions U1100 错误 - Azure Functions - Microsoft.NET.Sdk.Functions U1100 Error 由Microsoft.NET.Sdk.Functions引起的版本冲突 - Version conflict caused by Microsoft.NET.Sdk.Functions 错误 NU1100: Microsoft.NET.Sdk.Functions (>= 3.1.1)' for '.NETCoreApp,Version=v3.1 (new to c#, ZCF04A02E37B774FC391Z4A) - error NU1100: Microsoft.NET.Sdk.Functions (>= 3.1.1)' for '.NETCoreApp,Version=v3.1 (new to c#, azure functions, coding in general) 无法转换为 json 响应驼峰案例 newtonsoft.json 和 Microsoft.NET.Sdk.Functions 1.0.24 - can not convert to json response to camel case newtonsoft.json and Microsoft.NET.Sdk.Functions 1.0.24 在Microsoft Build 2019之后,LUIS Programmatic SDK功能停止工作 - LUIS Programmatic SDK functions stopped working after Microsoft Build 2019 构建/项目类型 - Microsoft.NET.Sdk - Build / project type - Microsoft.NET.Sdk 升级到Visual Studio Update 2后生成错误 - Build error after upgrading to Visual Studio Update 2 升级.NET 4.5后如何删除Microsoft Async Targeting Pack - How to remove Microsoft Async Targeting Pack after upgrading .NET 4.5 将 .netcore 2.2 升级到 .NET 5 后出现 LINQ 错误 - LINQ error after upgrading .netcore 2.2 to .NET 5 Microsoft.Build.Engine错误(默认目标):目标GetFrameworkPaths:无法找到.NET Framework SDK - Microsoft.Build.Engine Error (default targets): Target GetFrameworkPaths: Could not locate the .NET Framework SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM