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

121
Views
How to generate non-source files (e.g. json) in C#/ .NET 5

I've started using Source Generator in .NET 5 to generate some custom serialization code. This works beautifully for my use case. However I'd also like to create a custom schema for said serializer in the form of a JSON file. Unfortunately, I haven't been able to find a way to output said generated file using Source Generators. Is this possible at all? Or perhaps I should use some other method of generation?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This is a scenario we're actively looking at, but don't have the current bandwidth to implement. We did some early work to see how it would work for analyzers here: https://github.com/dotnet/roslyn/pull/49046

Logically that work would flow to generators as well, but as noted above, right now the answer is 'no, it's not possible'.

We have a tracking issue at https://github.com/dotnet/roslyn/issues/57608. Feel free to thumbs up, or add your particular scenario to it which helps when it comes to prioritization.

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!