英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论