当前位置: 网赚博客 > 编程语言 >.NET 5.0, VS2019 Preview and C# 9.0 for ASP .NET C

.NET 5.0, VS2019 Preview and C# 9.0 for ASP .NET C

发布时间:2020-11-07 15:29:25 | 作者: 迪克酥酥 | 分类:编程语言

This is the fourteenth of a new series of posts on ASP .NET Core 3.1 for 2020. In this series, we’ll cover 26 topics over a span of 26 weeks from January through June 2020, titled ASP .NET Core A-Z! To differentiate from the 2019 series, the 2020 series will mostly focus on a growing single codebase (NetLearner!) instead of new unrelated code snippets week.

Previous post:

  • Middleware in ASP .NET Core 3.1

NetLearner on GitHub:

  • Repository: https://github.com/shahedc/NetLearnerApp

  • v0.14-alpha release: https://github.com/shahedc/NetLearnerApp/releases/tag/v0.14-alpha

NOTE: The NetLearner suite of apps won’t be updated to .NET 5.0 at this time, so you can check out the new template-generated projects in an experimental subfolder:

  • Experimental projects with .NET 5: https://github.com/shahedc/NetLearnerApp/tree/main/experimental/NetLearner.DotNet5

In this Article:

  • N is for .NET 5.0, VS2019 Preview and C# 9.0

  • Visual Studio 2019 Preview

  • .NET 5.0 Preview 2

  • C# 9.0 features

  • ASP .NET Core 5.0 Project Types

  • Migrating from 3.1 to 5.0

  • References

N is for .NET 5.0, VS2019 Preview and C# 9.0

As we have crossed the halfway point in this series, now is a good time to take a step back and look forward at .NET 5.0. This is the next iteration of .NET Core, which skips over the number 4, and unifies all flavors of .NET into a single .NET (i.e. .NET Core, .NET Framework and Mono).

In order to use .NET 5.0 (Preview 2 as of this writing), we need to install Visual Studio 2019 v16.6.0 Preview 2.1. This will give you access to all the latest (preview) project templates for ASP .NET Core 5.0. Since C# 9.0 is still early in development, we will just briefly touch on upcoming/proposed language features.

Visual Studio 2019 Preview

Visual Studio 2019 has been out since early 2019, so you can grab the latest stable version from the main download page. Visit any of the URLs below to select the edition you need:

  • VS2019 Downloads: https://visualstudio.microsoft.com/downloads/

    • Community Edition

    • Professional Edition

    • Enterprise Edition

In order to get the latest Preview version, you must visit the special download page for Previews:

  • VS2019 Preview Downloads: https://visualstudio.microsoft.com/vs/preview/

    • Community Edition

    • Professional Edition

    • Enterprise Edition

As before, the Community Edition (comparable to Pro) is free for students, open-source contributors and individuals. The Pro and Enterprise editions add additional products and services from small teams to enterprise companies.

But wait! What if you can’t stay online for the length of the installation or need to reinstall quickly at a later date? If you need an offline installer, check out the instructions on the following page:

  • Create an offline installation: https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019

What are some cool new and improved features to be aware of? There are so many that I stitched together a series of tweets from Amanda Silver (CVP of Product for Developer Tools) and created the following thread in April 2019:

  • Twitter thread: https://twitter.com/shahedC/status/1113177299652837376

The aforementioned thread highlights the following features. Click each hyperlink in the list below for more info on each.

  • Live Share: Available as an extension in VS Code, Live Share is installed by default with VS2019. Easily collaborate with other developers while coding in real-time!

  • Intellicode: Use AI to write better code. Choose to share what you want with others or keep things private.

  • Git-first workflows: Choose to create a new project from a source code repo or use a template. The new start window provides more options up front.

  • Debug search: Search while debugging. Type in search filters in the Watch, Locals, and Autos panels.

  • Snapshot debugging: Available in the Enterprise Edition, snapshot debugging allows you to get a snapshot of your app’s execution after deployment. This includes cloud deployments, Azure VMs and Kubernetes containers.

  • VS Search: Dynamic search results include commands, menus, components and templates. Note that this was formerly know as Quick Launch.

  • App Service Debugging: Attach the debugger to your app running in Azure App Service!

  • App Service Connectivity: Connect your web app to Azure App Service with ease, including App Insights monitoring.

  • Azure Monitor: Use Azure Monitor to get additional insight on your deployed app!

If you prefer to sit back and relax and just watch a recap of the launch announcements, I put together a handy list of YouTube videos from the VS2019 launch event. This playlist kicks off with the 50-minute keynote, is followed by a string of videos and ends with a cumulative 7-hour video if you prefer to watch all at once.

  • VS2019 Launch event playlist: https://www.youtube.com/watch?v=DANLUUIUrcM&list=PLLPmfQOWse5Gr4pMcyFmwHW-hDUWmbT6B


来源:(QQ/微信:313919848),转载请保留出处和链接!

本文链接: https://www.uzhan5.com/post/51108

本文标签:

.net

相关阅读:

OA办公自动化系统

IIS 10 HTTP 跳转HTTPS

Task.Run()任务执行

C# windows 文件侠操作记录

android studio开发android工程,SVN不需要提交文件

关注迪克酥酥学习网赚技巧

评论区

    本文暂时没有评论,来添加一个吧(●'◡'●)

    欢迎您发表评论:

    免费注册 快速登录 网赚工具
    收藏本站

    网赚交流群

    U5网赚客服 返回顶部

    您好,欢迎进入 U5副业网!请 [登录] [注册]

    博客导航 淘宝大额优惠券 站长圈 站长工具 公告资讯