Target .NET Core 2.0 with Azure Functions in Visual Studio 2017

后端 未结 3 1229
别跟我提以往
别跟我提以往 2021-01-03 21:57

Since Microsoft has released .NET Core 2.0 for Azure Functions a few days ago, I\'m trying to understand how to create a new Functions project in VS2017 targeting .NET Core.

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 22:52

    This is supported with the 1.0.5 release of the Microsoft.NET.Sdk.Functions package.

    In your Azure Functions Project, do the following:

    • Update the Microsoft.NET.Sdk.Functions package version to 1.0.5
    • Right click on your project, click the Edit .csproj option and modify the TargetFramework element value to netstandard2.0

    This will should generate .NET Standard 2.0 assemblies with all the artifacts created by the Azure Functions tooling.

提交回复
热议问题