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

218
Views
Deshabilitar un generador de fuente C# 9 específico

¿Hay alguna forma de deshabilitar un generador de fuente C # 9 específico? ¿O alternativamente deshabilitarlos a todos?

el paquete en cuestión es https://github.com/Husqvik/GraphQlClientGenerator#c-9-source-generator , que está diseñado para poder usarse como biblioteca y como generador de fuentes. pero son mutuamente excluyentes, es decir, en la mayoría de los casos de uso no tiene sentido generar código tanto mediante la ejecución del código como mediante la generación de código.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

parece que esto deshabilitará todo

 <Target Name="DisableAnalyzers" BeforeTargets="CoreCompile"> <ItemGroup> <Analyzer Remove="@(Analyzer)" /> </ItemGroup> </Target>

eliminar uno con nombre usa la ruta del archivo

 <Target Name="DisableAnalyzers" BeforeTargets="CoreCompile"> <ItemGroup> <Analyzer Remove="D:\nugets\nugetx\0.9.2\analyzers\dotnet\cs\NugetXAnalizer.dll" /> </ItemGroup> </Target>

ok y finalmente puedes eliminarlo según el nombre del archivo

 <Target Name="DisableAnalyzers" BeforeTargets="CoreCompile"> <ItemGroup> <Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'NugetXAnalizer'"/> </ItemGroup> </Target>
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!