简体   繁体   中英

Azure function template

When I create Azure function it is by default referencing .net core 2.1; I remember in the past it was referencing .net standard 2.0

Question: What is better to be referencing right now and why such change happened? I tend to think that .net standard is better since I do not see any core-specific feature to be used by a function. What am I missing?

.net core 2.1 is the latest template. The template used before October 2018 is .net standard 2.0. Both frameworks work. Function v2 is based on the .net core environment from the beginning. Changes to the framework will not affect previously built functions, but you need to provide access to the .Net Core API and related dependencies.

The only problem is that you can't reference projects that target different frameworks, and they won't be compatible without changing TF. It is recommended that you use .net core 2.1 to ensure long-term compatibility.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM