Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Salut .NET 5, quoi de neuf ?
Search
Cyril
December 10, 2020
Programming
0
58
Salut .NET 5, quoi de neuf ?
Résumé des nouveautés dernières .NET 5, C# 9 et Visual Studio.
Cyril
December 10, 2020
Tweet
Share
More Decks by Cyril
See All by Cyril
Annonces de la .NET Conf 2019
cyrilcathala
0
59
Build 2018 - Xamarin
cyrilcathala
1
43
Microsoft Build 2017 Mobile Wrap-Up
cyrilcathala
0
120
Mobile Deep Linking
cyrilcathala
0
110
Programmation Réactive - Reactive Extensions
cyrilcathala
0
73
Xamarin.iOS - AutoLayout + iOS 9
cyrilcathala
0
430
Other Decks in Programming
See All in Programming
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
930
GUI操作LLMの最新動向: UI-TARSと関連論文紹介
kfujikawa
0
1k
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
2.3k
AIでLINEスタンプを作ってみた
eycjur
1
210
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
210
Nuances on Kubernetes - RubyConf Taiwan 2025
envek
0
200
【第4回】関東Kaggler会「Kaggleは執筆に役立つ」
mipypf
0
900
ゲームの物理
fadis
5
1.5k
CSC305 Summer Lecture 12
javiergs
PRO
0
130
ライブ配信サービスの インフラのジレンマ -マルチクラウドに至ったワケ-
mirrativ
2
270
AIレビュアーをスケールさせるには / Scaling AI Reviewers
technuma
2
230
オープンセミナー2025@広島LT技術ブログを続けるには
satoshi256kbyte
0
140
Featured
See All Featured
Building Adaptive Systems
keathley
43
2.7k
Rails Girls Zürich Keynote
gr2m
95
14k
Agile that works and the tools we love
rasmusluckow
329
21k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.6k
4 Signs Your Business is Dying
shpigford
184
22k
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
570
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Code Reviewing Like a Champion
maltzj
525
40k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Transcript
10/12/2020 Salut .NET 5, quoi de neuf ?
Cyril CATHALA A propos ➔ .NET, Azure, Mobile ➔ Coach
Technique – SOAT ➔ MVP Developer Technologies @CyrilCathala in/cyrilcathala
[email protected]
3 .NET 5
Roadmap .NET Core 4
.NET 5 – Unification 5
.NET 5 6 ➔ Target framework > net5.0 : Crossplatform
> net5.0-windows : Forms, WPF, WinRT… > net6.0-ios, net6.0-android : Xamarin ➔ Performances+++ > gRPC, Arm64, JSON ➔ Support de Windows Arm64 ➔ System.Text.Json amélioré ➔ Extensions HttpClient pour JSON > GetFromJsonAsync<T>() ➔ Application single file
.NET 5 - Windows 7 ➔ Designer Windows Forms +
WPF ➔ Installeur ClickOnce ➔ Plus besoin d’avoir .NET Framework installé ➔ Contrôle moderne WebView2
ASP.NET Core 8 ➔ Model binding supporte les records ➔
OpenAPI (ex-Swagger) supporté par défaut ➔ SignalR Hub Filters > Middleware des hubs ➔ Blazor > Cf. Jérôme & Jonathan !
Entity Framework Core 9 ➔ Relations many-to-many ❤ ➔ Table-per-type
mapping ➔ Mapping d’une entity avec une query ➔ Interception du SaveChanges > SavingChanges, SavedChanges ➔ Include() avec filtre ➔ Amélioration des migrations > Transactions et exclusion de tables
10 C# 9
C# 9 – Init-only properties 11 ➔ Propriétés initialisables à
l’instanciation uniquement
C# 9 - Records 12 ➔ Classe immutable par défaut
➔ Support de l’héritage ➔ Implémentation automatique > Comparaison par valeurs > GetHashCode() > Copy / Clone > PrintMembers / ToString()
C# 9 - Records 13 ➔ Copie avec with ➔
Déclaration plus compacte : positional records > Deconstruct()
C# 9 - Top-level Programs 14
C# 9 - Patterns 15 ➔ Patterns logiques : and,
or, not ➔ Patterns relationnels : <, <=, >, >= ➔ Compatible avec tous les patterns : is, switch, case
C# 9 - new() 16 ➔ Omission du type quand
il est implicite
C# 9 - Source Generator 17 ➔ Génération de code
source (quelle surprise !) ⚠ Preview ⚠ ➔ Complément ou remplacement pour la reflection, modification d’IL, tâches MSBuild ou T4
18 Visual Studio
Visual Studio 2019 16.8 19 ➔ Support Git
Visual Studio 2019 16.8 20 ➔ Support Git ➔ .NET
Analyzers
Visual Studio 2019 16.8 21 ➔ Support Git ➔ .NET
Analyzers ➔ Aide sur les noms de paramètre et types
Visual Studio 2019 16.9 Preview 22 ➔ Point-virgule automatique
Visual Studio 2019 16.9 Preview 23 ➔ Point-virgule automatique ➔
Using automatique après une copie
Visual Studio 2019 16.9 Preview 24 ➔ Point-virgule automatique ➔
Using automatique après une copie ➔ Génération de propriété bindée
@CyrilCathala in/cyrilcathala
[email protected]
Merci !