尝试将正在运行的 Azure 函数更新为隔离模式,但无法更改 .NET 版本。

huangapple go评论57阅读模式
英文:

Trying to Update In-Process Azure Function to Isolated But Can't Change .NET Version

问题

我必须将一个函数应用程序更新为目标为.NET 7。我必须将函数应用程序类型从In-Process更改为Isolated(更多细节如下)。它当前的目标是.NET 6,尽管我已经下载了.NET 7 SDK并可以使用它创建新项目,但我无法将现有的函数应用程序从.NET 6更改为.NET 7。因此,当我打开项目属性时,.NET 7目标框架下拉菜单中不显示为选项。我已经尝试重新启动了Visual Studio和我的计算机,但没有成功。

我在某处看到过,这可能是因为Visual Studio知道函数是In-Process,并且在进行必要的更改(如将FunctionName更改为Function等)之前无法更新到.NET 7。我已经删除/添加了适当的NuGet包,但不确定是否可能是问题的原因,或者我是否忽略了更明显的东西。

英文:

I have to update a Function App to target .NET 7. I have to change the Function App type from In-Process to Isolated (more below). It's currently targeting .NET 6 and although I downloaded the .NET 7 SDK and can create new projects with it, I can't change the existing Function App from .NET 6 to .NET 7. So, when I open the project properties, .NET 7 doesn't show up as an option in the Target Framework dropdown. I've restarted VS and my machine to no avail.

I read somewhere that it may be because Visual Studio knows the Function is In-Process and can't update to .NET 7 until the necessary changes have been made (changing FunctionName to Function etc). I've removed/added the appropriate nuget packages but am wondering if that could be the issue or if I'm missing something more obvious.

答案1

得分: 0

好的,以下是翻译好的部分:

"Well, it turns out my version of Visual Studio 2022 needed to be updated. Hope this helps someone who goes through all the other recommended actions."

"嗯,事实证明,我的 Visual Studio 2022 版本需要更新。希望这能帮助那些执行了所有其他推荐操作的人。"

英文:

Well, it turns out my version of Visual Studio 2022 needed to be updated. Hope this helps someone who goes through all the other recommended actions.

huangapple
  • 本文由 发表于 2023年6月27日 20:54:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76565079.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定