Category: .NET Core
-
AutoActions for Skinny controllers–small customizations
Logging Roslyn Code Generator: For each program that you develop,it is important ( if not vital ) to see logging. In the Roslyn Analyzer / Code Generators,the diagnostics are logged with DiagnosticDescriptor and Diagnostic – think that you should see in the output console when compiling and this will become clear. More,the enum DiagnosticSeverity Enum…
-
AutoActions for Skinny controllers–deploying at NuGet
First time I was thinking that is enough to do dotnet pack to make a Nuget package to deploy on NUGET. It was not. I realized that the generator was not starting at all! And it was not in the project Dependencies=>Analyzers . Time to read more from https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.cookbook.md,I realized that I was wrong –…
-
AutoActions for Skinny controllers–first implementation
Now with the implementation. First,I find all the fields declarations that had the Autonotify if (syntaxNode is FieldDeclarationSyntax fieldDeclarationSyntax && fieldDeclarationSyntax.AttributeLists.Count > 0) { foreach(var al in fieldDeclarationSyntax.AttributeLists) { var att = al.Attributes; foreach(var at in att) { var x = at.Name as IdentifierNameSyntax; if(autoActions.Contains(x.Identifier.Text)) { CandidateFields.Add(fieldDeclarationSyntax); return; } } } } Second,I must…
-
AutoActions for Skinny controllers–idea
How you generate actions in controllers ? Usually,you create a Business Logic class and then you expose via a controller in a WebAPI . And,if you are very careful,then you use the Skinny controllers concept ( read more about it at 3 ways to keep your asp.net mvc controllers thin (jonhilton.net) ). So this implies…
-
[Video] 5 minutes about Click Once
Video 5 minutes about Click Once
-
[ADCES] Presentation about .NET 5
My presentation were about EFCore,RoslynGenerators,Breaking Changes and ClickOnce. Code and presentation at https://ignatandrei.github.io/Presentations/NET5prez.html . Next presentation will be https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/events/274737653/
-
[ADCES].NET 5 What’s new and awesome
Daniel Costea,Andrei Ignat si Dan Patrascu-Baba si o sa faca demo practice despre 1. C# – What’s new 2. ASP.NET Core – What’s new 3. EF Core – What’s new 4. Auto-Update de aplicatii Asp.NET Core si WPF prin ClickOnce 5. Roslyn Generators pentru code 6. Breaking changes 7 What’s new in Blazor on .NET…
-
[Video] 5 Minutes Roslyn Code Generators
[Video] 5 Minutes Roslyn Code Generators
-
Console2SAAS – what I learned from third chapter
The third chapter of the mini-e-book Console2SAAS shows me that I should not re-invent the wheel. Of course,it is easy to make a code that reads settings – but why do it so if there are libraries already in the framework ? Also,even a such simple task ( reading the setting),in order to do properly,there…
-
Console2SAAS – what I learned from second chapter
The second chapter of Console2SAAS is very short. I realized that,as soon that you have the software,you want to have an ecosystem around it – version control,automatic CI . Also,if the software is released even to beta testers,you should have some refactoring done in order to have the solution structured properly for modifications. You can…