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
56
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
53
Build 2018 - Xamarin
cyrilcathala
1
41
Microsoft Build 2017 Mobile Wrap-Up
cyrilcathala
0
120
Mobile Deep Linking
cyrilcathala
0
100
Programmation Réactive - Reactive Extensions
cyrilcathala
0
72
Xamarin.iOS - AutoLayout + iOS 9
cyrilcathala
0
430
Other Decks in Programming
See All in Programming
A2A プロトコルを試してみる
azukiazusa1
2
1.3k
効率的な開発手段として VRTを活用する
ishkawa
0
130
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
430
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
740
Team operations that are not burdened by SRE
kazatohiei
1
310
XP, Testing and ninja testing
m_seki
3
240
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
120
Deep Dive into ~/.claude/projects
hiragram
14
2.5k
RailsGirls IZUMO スポンサーLT
16bitidol
0
180
Goで作る、開発・CI環境
sin392
0
230
Webの外へ飛び出せ NativePHPが切り拓くPHPの未来
takuyakatsusa
2
540
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
670
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
The Cost Of JavaScript in 2023
addyosmani
51
8.5k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
Testing 201, or: Great Expectations
jmmastey
42
7.6k
A designer walks into a library…
pauljervisheath
207
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
Building Adaptive Systems
keathley
43
2.7k
Adopting Sorbet at Scale
ufuk
77
9.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
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 !