Finished the DTO-viewmodel converters, tomorrow gonna tackle the last class to require generated code for now - the viewmodel factory, with all its ICommand assignments.
This one is a tiny bit trickier than the rest because I gotta report diagnostics rather than throw if appropriate code for a command assignment was not present (not all the types are even close to implemented in the app yet). #csharp #sourcegen #roslyn
Previously on #2codeOrNot2code, in S2023E14, enhancing our suite of #CSharp integration tests helped us find two issues in our production code.
Starting in 1 hour, to work the bugs out, we will complete the integration testing for our #dotnet command-line #Roslyn tool.
#2codeornot2code #csharp #dotnet #roslyn
Maybe introducing IDE0200 (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0200) wasn't that great of an idea, after all.
#DotNet #Roslyn #VisualStudio #CSharp
https://github.com/dotnet/roslyn/issues?q=is%3Aissue+IDE0200
#dotnet #roslyn #visualstudio #csharp
i think the new engine is the same as the one #visualStudio uses, as i found bug-reports on this in the #roslyn -repo referencing it and visual-studio.
first day of summer-vacation.
i'm playing with #roslyn
i want to create mermaid-diagrams that show the flow of data from commands through aggregates and events into projected read-models in queries and onto published messages to other systems.
i want this to generate documentation that cannot be outdated
It's initial release time for our #Roslyn tool! On Wednesday, 19 July 2023, at 17:00 UTC.
Together with special guest @matkoch, we are using the power of @nuke to create CI/CD pipelines that build, test and pack our #dotnet tool to publish on #NuGet, all with #CSharp.
#roslyn #dotnet #nuget #csharp
On Thursday, 06 July 2023 17:00 UTC, adding another layer of defense serves our test strategy well:
We strengthen the resiliency of our #dotnet command-line #Roslyn tool for #CSharp projects with an integration #testing micro framework.
#dotnet #roslyn #csharp #testing #2codeornot2code
@dr_cox1911 "best" depends on the exact scenario, but the classes are available in the compilation that the source generator has access too, you just have to find them. GetTypeByMetadataName perhaps, or dig through the global namespace. Depends what you want to do.
I can thoroughly recommend joining the C# Discord, https://discord.gg/csharp, and asking, and explaining your scenario, on the #roslyn channel.
We're completing the first version of a #Roslyn-based #dotnet tool that globalizes #CSharp using directives.
Tune in on Friday, 16 June at 17:00 UTC on either our Twitch or YouTube channel.
#roslyn #dotnet #csharp #2codeornot2code
It's still #dotnet tool time ... in Episode 07 of #2codeOrNot2code:
On Wednesday, May 10, at 17:00 UTC, we use #Roslyn to count and globalize #CSharp (local) using directives.
#dotnet #2codeornot2code #roslyn #csharp
Symbolにオンチェーン化されたTransferTransaction関数をRoslynを使って実行する
https://qiita.com/Toshi_ma/items/b16bc1239b125b202b9c?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#Roslyn #Blockchain #Symbol #ブロックチェーン
#roslyn #blockchain #symbol #ブロックチェーン
I've been playing around with creating C# Analysers and Code Fixes in #roslyn I now have a simple analyser created to suggest replacing the code !string.IsNullOrWhiteSpace() with an extension method I created. It will then go on to create a code fix for you so you just have to accept the fix if you don't want to do any typing of your own.
The code is here: https://github.com/Stravaig-Projects/Stravaig.Extensions.Core
And there is a NuGet package if you just like the fix and want to use it in your own project.
It's still #dotnet tool time ... in Episode 06 of #2codeOrNot2code:
On Wednesday, April 26, at 17:00 UTC, we use #Roslyn to count and globalize #CSharp (local) using directives.
#dotnet #2codeornot2code #roslyn #csharp
Gonna hang out on a stream tonight and see if I can bumble way through pretending like I know how to use the Roslyn workspaces API!
https://twitter.com/FlashOWare/status/1642159490647707650
https://www.youtube.com/watch?v=Ze-FeDMJRnY
Thanks to Stefan for the invite!
Testing Roslyn Incremental Source Generators #dotnet #roslyn https://www.meziantou.net/testing-roslyn-incremental-source-generators.htm?utm_medium=social&utm_source=mastodon
So interesting to see all the stuff happening on #WinForms first #MVVM now #Roslyn, next up multi platform?
https://devblogs.microsoft.com/dotnet/winforms-codegen-update/?WT.mc_id=DOP-MVP-5001655
https://devblogs.microsoft.com/dotnet/winforms-cross-platform-dotnet-maui-command-binding/
#winforms #mvvm #roslyn #dotnet
@devleader @dotnetbot I wish the #roslyn team would put out an official package to enable the latest #csharp compiler features in downlevel frameworks. There are a multitude of one-off packages all trying to enable the same thing, but without the brand trust.