visual-studio - 在 .NET Core 目标中创建 Azure Function 项目 .NET Framework

标签 visual-studio azure visual-studio-2017 azure-functions

我将 Visual Studio 2017 升级到最新版本,即 15.3。然后,我升级了 Azure Functions 和 WebJobs 的 VS 扩展。

当我创建一个面向 .NET Core 2.0 的新 Azure Function 项目时,它仍然面向 .NET Framework。见下文...

enter image description here

这是项目文件: enter image description here

附注公平地说,该对话框显示 .NET Framework 2.0 NOT .NET Core 2.0。所以我猜 MS 的字面意思是针对 .NET Framework 2.0!!!

最佳答案

更新 12/21/17 请参阅此处的新帖子:Develop Azure Functions on any platform

上一个答案

行为可能有点令人困惑;我现在澄清了博客文章:Azure Functions Tools released for Visual Studio 2017 Update 3 .

项目类型为 .NET Standard,但我们目前在 Azure Functions 运行时中不支持 .NET Standard 2.0 外观。现在 .NET Standard 2.0 已成为 RTM,我们将在未来版本中进行此更新。一旦发生这种情况,除了更改目标框架之外,您无需进行任何项目更改。

目前,Azure Functions 仅在完整框架上运行,因此针对 netstandard2.0 没有任何好处。但是,我们正在将运行时移植到 .NET Core,此时存在差异。该工作完成后,“新建项目”对话框将默认以 netstandard2.0 为目标。

关于visual-studio - 在 .NET Core 目标中创建 Azure Function 项目 .NET Framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45703285/

相关文章:

c++ - 无法创建简单的 DLL 示例

visual-studio - Visual Studio 2012 的蓝色主题,如 2010

c# - 使用 C# 项目的一个解决方案中的 native C++ dll

azure - Visual Studio 2017 Azure 函数模板没有 run.csx 或 project.json 等文件

powershell - 如何使用 PowerShell 或 CLI 启动本地 Azure Service Fabric 集群

azure - 如何在 azure cli 2.0 中使用 blob 存储中的现有 VHD 镜像创建新虚拟机?

c++ - 查找 Visual C++ 工具的包含 Visual Studio 2017 的文件夹位置

c# - 在调试时我在使用 Watch : Internal error in the C# compiler 时得到了这个

visual-studio - TFS 注释/归咎于一个项目的总结报告

asp.net - 如何在 Visual Studio 社区版中应用待处理的显式迁移? (ASP.NET)