#sourcegenerators — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #sourcegenerators, aggregated by home.social.
-
Interceptors и SourceGenerators: отказываемся от IL-инъекций
Привет! Я Дмитрий Сипаков, ведущий разработчик в Госсервисах Т-Банка. Расскажу про относительно новую фичу .NET — Interceptors: как они работают вместе со Source Generators и как с их помощью можно избавиться от бойлерплейта без IL-инъекций и сторонней магии.
-
Interceptors и SourceGenerators: отказываемся от IL-инъекций
Привет! Я Дмитрий Сипаков, ведущий разработчик в Госсервисах Т-Банка. Расскажу про относительно новую фичу .NET — Interceptors: как они работают вместе со Source Generators и как с их помощью можно избавиться от бойлерплейта без IL-инъекций и сторонней магии.
-
Interceptors и SourceGenerators: отказываемся от IL-инъекций
Привет! Я Дмитрий Сипаков, ведущий разработчик в Госсервисах Т-Банка. Расскажу про относительно новую фичу .NET — Interceptors: как они работают вместе со Source Generators и как с их помощью можно избавиться от бойлерплейта без IL-инъекций и сторонней магии.
-
Pretty straight forward, once a couple simple helpers intervene.
-
Pretty straight forward, once a couple simple helpers intervene.
-
Pretty straight forward, once a couple simple helpers intervene.
-
Pretty straight forward, once a couple simple helpers intervene.
-
Pretty straight forward, once a couple simple helpers intervene.
-
Source generation certainly makes Find All References noisy. #DotNet #Roslyn #SourceGenerators
-
Source generation certainly makes Find All References noisy. #DotNet #Roslyn #SourceGenerators
-
Source generation certainly makes Find All References noisy. #DotNet #Roslyn #SourceGenerators
-
Source generation certainly makes Find All References noisy. #DotNet #Roslyn #SourceGenerators
-
Source generation certainly makes Find All References noisy. #DotNet #Roslyn #SourceGenerators
-
I can't decide which should be true, but surely one of them should be:
* Code marked with [GeneratedCode] should be ignored by code coverage, or
* Generated code should be marked with [ExcludeFromCodeCoverage]I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀
-
I can't decide which should be true, but surely one of them should be:
* Code marked with [GeneratedCode] should be ignored by code coverage, or
* Generated code should be marked with [ExcludeFromCodeCoverage]I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀
-
I can't decide which should be true, but surely one of them should be:
* Code marked with [GeneratedCode] should be ignored by code coverage, or
* Generated code should be marked with [ExcludeFromCodeCoverage]I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀
-
I can't decide which should be true, but surely one of them should be:
* Code marked with [GeneratedCode] should be ignored by code coverage, or
* Generated code should be marked with [ExcludeFromCodeCoverage]I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀
-
I can't decide which should be true, but surely one of them should be:
* Code marked with [GeneratedCode] should be ignored by code coverage, or
* Generated code should be marked with [ExcludeFromCodeCoverage]I'm looking at you, code generators for [LoggerMessage] and [GeneratedRegex] and/or Microsoft.Testing.Extensions.CodeCoverage. 👀
-
https://github.com/csharpfritz/InstantAPIs - Generate "instant" #MinimalAPIs for #ASPnet using Reflection or #SourceGenerators. Nice experiment @csharpfritz.
-
https://github.com/csharpfritz/InstantAPIs - Generate "instant" #MinimalAPIs for #ASPnet using Reflection or #SourceGenerators. Nice experiment @csharpfritz.
-
https://github.com/csharpfritz/InstantAPIs - Generate "instant" #MinimalAPIs for #ASPnet using Reflection or #SourceGenerators. Nice experiment @csharpfritz.
-
https://github.com/csharpfritz/InstantAPIs - Generate "instant" #MinimalAPIs for #ASPnet using Reflection or #SourceGenerators. Nice experiment @csharpfritz.
-
https://github.com/csharpfritz/InstantAPIs - Generate "instant" #MinimalAPIs for #ASPnet using Reflection or #SourceGenerators. Nice experiment @csharpfritz.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
Hey #dotnet friends using System.Text.Json ✋
Has anyone managed to create code that uses source generators but for snake_case naming policy?
I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?
Any help please, repost for reach?
#csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson
-
Hey #dotnet friends using System.Text.Json ✋
Has anyone managed to create code that uses source generators but for snake_case naming policy?
I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?
Any help please, repost for reach?
#csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson
-
Hey #dotnet friends using System.Text.Json ✋
Has anyone managed to create code that uses source generators but for snake_case naming policy?
I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?
Any help please, repost for reach?
#csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson
-
Hey #dotnet friends using System.Text.Json ✋
Has anyone managed to create code that uses source generators but for snake_case naming policy?
I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?
Any help please, repost for reach?
#csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson
-
Hey #dotnet friends using System.Text.Json ✋
Has anyone managed to create code that uses source generators but for snake_case naming policy?
I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?
Any help please, repost for reach?
#csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson
-
#CSharp #SourceGenerators can add generated code to your existing code. With #dotnet 8 and interceptors it now can also *replace* your existing code.
https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#interceptors
-
#CSharp #SourceGenerators can add generated code to your existing code. With #dotnet 8 and interceptors it now can also *replace* your existing code.
https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#interceptors
-
#CSharp #SourceGenerators can add generated code to your existing code. With #dotnet 8 and interceptors it now can also *replace* your existing code.
https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#interceptors
-
#CSharp #SourceGenerators can add generated code to your existing code. With #dotnet 8 and interceptors it now can also *replace* your existing code.
https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#interceptors
-
#CSharp #SourceGenerators can add generated code to your existing code. With #dotnet 8 and interceptors it now can also *replace* your existing code.
https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#interceptors
-
I'm currently looking at API Client generators to generate a TypeScript API Client from a REST endpoint with OpenAPI/Swagger support.
On my comparison list I have the following:
- NSwag (https://nswag.org)
- OpenAPI Generator (https://openapi-generator.tech/docs/generators/typescript-angular/)
- Kiota (https://aka.ms/kiota/docs)Any other suggestions to keep an eye on?
#DotNet #AspNetCore #TypeScript #Angular #Api #SourceGenerators #ApiClient
-
https://dev.to/alyelhaddad/thunderboltioc-net-dependency-injection-without-reflection-30ai - ThunderboltIoC is a #dotNET #IoC / #DependencyInjection framework that uses #SourceGenerators and not #Reflection. Thanks for the start-up post https://github.com/AlyElHaddad.
-
https://dev.to/alyelhaddad/thunderboltioc-net-dependency-injection-without-reflection-30ai - ThunderboltIoC is a #dotNET #IoC / #DependencyInjection framework that uses #SourceGenerators and not #Reflection. Thanks for the start-up post https://github.com/AlyElHaddad.
-
https://dev.to/alyelhaddad/thunderboltioc-net-dependency-injection-without-reflection-30ai - ThunderboltIoC is a #dotNET #IoC / #DependencyInjection framework that uses #SourceGenerators and not #Reflection. Thanks for the start-up post https://github.com/AlyElHaddad.
-
https://dev.to/alyelhaddad/thunderboltioc-net-dependency-injection-without-reflection-30ai - ThunderboltIoC is a #dotNET #IoC / #DependencyInjection framework that uses #SourceGenerators and not #Reflection. Thanks for the start-up post https://github.com/AlyElHaddad.
-
https://dev.to/alyelhaddad/thunderboltioc-net-dependency-injection-without-reflection-30ai - ThunderboltIoC is a #dotNET #IoC / #DependencyInjection framework that uses #SourceGenerators and not #Reflection. Thanks for the start-up post https://github.com/AlyElHaddad.
-
How do you debug #dotnet source generators? 🤔🪲
In this post by @khalidabuhakmeh, learn how to debug generated sources, as well as the source generator itself – with the debugger, and with snapshot testing.
-
How do you debug #dotnet source generators? 🤔🪲
In this post by @khalidabuhakmeh, learn how to debug generated sources, as well as the source generator itself – with the debugger, and with snapshot testing.
-
How do you debug #dotnet source generators? 🤔🪲
In this post by @khalidabuhakmeh, learn how to debug generated sources, as well as the source generator itself – with the debugger, and with snapshot testing.
-
How do you debug #dotnet source generators? 🤔🪲
In this post by @khalidabuhakmeh, learn how to debug generated sources, as well as the source generator itself – with the debugger, and with snapshot testing.
-
How do you debug #dotnet source generators? 🤔🪲
In this post by @khalidabuhakmeh, learn how to debug generated sources, as well as the source generator itself – with the debugger, and with snapshot testing.
-
The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.
Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?
Maybe it even already exists?
#dotnet #CSharp #SourceGenerators -
The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.
Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?
Maybe it even already exists?
#dotnet #CSharp #SourceGenerators -
The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.
Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?
Maybe it even already exists?
#dotnet #CSharp #SourceGenerators -
The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.
Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?
Maybe it even already exists?
#dotnet #CSharp #SourceGenerators -
The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.
Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?
Maybe it even already exists?
#dotnet #CSharp #SourceGenerators -
Episode 429 of FreeCodeSession is live!
-
Episode 429 of FreeCodeSession is live!
-
Episode 429 of FreeCodeSession is live!
-
Episode 429 of FreeCodeSession is live!
-
Episode 429 of FreeCodeSession is live!
-
Episode 428 of FreeCodeSession is live!