Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
C# 10: deshabilitar el uso global

¿Cómo puedo deshabilitar los nuevos usos globales predeterminados en C# 10 (consulte aquí: https://github.com/dotnet/aspnetcore/issues/32451 )?

Quiero ver los espacios de nombres usados de un vistazo y no quiero buscar en la documentación qué espacios de nombres se usan globalmente.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

<ImplicitUsings>disable</ImplicitUsings> debe agregarse al PropertyGroup en el archivo csproj.

Por ejemplo:

 <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>disable</ImplicitUsings> </PropertyGroup> </Project>

Si usa una versión beta de .NET 6, deberá usar <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports> .

over 4 years ago · Santiago Trujillo Report

0

En mi caso tuve que quitar

 <ImplicitUsings>enable</ImplicitUsings>

de csproj

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!