DEV Community

Cover image for .NET 6
Henrique Mauri
Henrique Mauri

Posted on

1

.NET 6

O novo .NET chegou junto com o C# 10, cheio de novidades que simplificam o desenvolvimento e com muito mais performance para essa versão estável do .NET 6 LTS (Long Time Support).

Neste artigo vamos configurar a nova versão do .NET no Visual Studio 2022.

Instalação

.NET 6 foi testado com Visual Studio 16.9 Preview 4 e Visual Studio 2022 Preview. Tente usar essas compilações se quiser experimentar o .NET 6.

Criando um projeto .NET 6

Com seu Visual Studio instalado, crie um novo projeto do tipo ASP.NET Core Web App:

image

Em seguida escolha o nome do seu projeto e selecione o .NET 6 como Framework:

image

O projeto em .NET 6.0 está muito mais limpo e simples de codificar. Um ponto bem legal é a possibilidade de utilizar o GlobalUsings, o que permite, em um único arquivo arquivo, ter todos os using do projeto.

image

Os detalhes completos das novidades do .NET 6.0 e C#10 você encontra no meu GitHub:
https://github.com/hgmauri/sample-dotnet6

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (1)

Collapse
 
insight_it_891bf8cd689700 profile image
Insight IT

Nice blog and informative content,
We are providing Best Dot NET Training in Hyderabad,
Thanks for sharing with us,
DOT NET Training in Hyderabad
DOT NET Online Training in Hyderabad

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay