Click here to Skip to main content
15,887,289 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 955 Pin
Shane010329-Jan-24 16:54
Shane010329-Jan-24 16:54 
GeneralRe: Wordle 955 Pin
GKP199229-Jan-24 17:08
professionalGKP199229-Jan-24 17:08 
GeneralRe: Wordle 955 Pin
OriginalGriff29-Jan-24 20:07
mveOriginalGriff29-Jan-24 20:07 
GeneralRe: Wordle 955 - 4 4 me Pin
pkfox29-Jan-24 21:02
professionalpkfox29-Jan-24 21:02 
GeneralRe: Wordle 955 Pin
Sander Rossel29-Jan-24 22:18
professionalSander Rossel29-Jan-24 22:18 
GeneralRe: Wordle 955 Pin
Cp-Coder30-Jan-24 1:19
Cp-Coder30-Jan-24 1:19 
GeneralRe: Wordle 955 Pin
ChandraRam30-Jan-24 6:22
ChandraRam30-Jan-24 6:22 
RantIn my best 'Sneakers' voice Pin
honey the codewitch29-Jan-24 7:54
mvahoney the codewitch29-Jan-24 7:54 
- "Too many secrets dotnets"

"Switch to Roslyn" they said. "It will be better" they said.

Update: And in teaching myself that - it's a royal pain compared to what i have been doing.

Yeah, except you can't target older versions of C#, like used in the .NET Framework with it well, if at all because source generators aren't available until like C#9. Why can't they backport this stuff? Just hire a few more people and give the economy another shot in the arm.

I'm faced with the fact that I already have *language independent* source code generation using the CodeDOM, which can target any and all .NET flavors, even if the steps for targeting each can vary a bit.

And source generators usually (but don't have to) take C# in plain text for their output.

Which leaves me with this option:

C#
var writer = new StringWriter();
...
csharpCodeDomProvider.GenerateCodeFromCompileUnit(mygeneratedCodeDom code, writer, opts);
// and then feed that to Roslyn/source generator


That feels cheap. But it saves me from having 3 copies of essentially the same generation code instead of just two (Reflection Emit and CodeDom). The other option is to write a dedicated roslyn generator.

The whole thing that has been holding up my next Code Project article, as well as this generation is I can't decide which bad choice I'm better off with.

It's just got me stuck and spinning my wheels. Dead | X|
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix


modified 29-Jan-24 20:30pm.

GeneralRe: In my best 'Sneakers' voice Pin
lmoelleb29-Jan-24 15:40
lmoelleb29-Jan-24 15:40 
GeneralRe: In my best 'Sneakers' voice Pin
honey the codewitch29-Jan-24 16:21
mvahoney the codewitch29-Jan-24 16:21 
GeneralRe: In my best 'Sneakers' voice Pin
lmoelleb30-Jan-24 3:43
lmoelleb30-Jan-24 3:43 
GeneralRe: In my best 'Sneakers' voice Pin
honey the codewitch30-Jan-24 3:52
mvahoney the codewitch30-Jan-24 3:52 
GeneralRe: In my best 'Sneakers' voice Pin
Richard Deeming29-Jan-24 21:53
mveRichard Deeming29-Jan-24 21:53 
GeneralRe: In my best 'Sneakers' voice Pin
lmoelleb30-Jan-24 3:47
lmoelleb30-Jan-24 3:47 
GeneralWordle 954 Pin
StarNamer@work28-Jan-24 13:14
professionalStarNamer@work28-Jan-24 13:14 
GeneralRe: Wordle 954 Pin
Sandeep Mewara28-Jan-24 14:29
mveSandeep Mewara28-Jan-24 14:29 
GeneralRe: Wordle 954 Pin
Amarnath S28-Jan-24 15:04
professionalAmarnath S28-Jan-24 15:04 
GeneralRe: Wordle 954 4/6 me Pin
Shane010328-Jan-24 17:21
Shane010328-Jan-24 17:21 
GeneralRe: Wordle 954 Pin
GKP199228-Jan-24 17:35
professionalGKP199228-Jan-24 17:35 
GeneralRe: Wordle 954 Pin
ChandraRam28-Jan-24 20:39
ChandraRam28-Jan-24 20:39 
GeneralRe: Wordle 954 Pin
OriginalGriff28-Jan-24 21:13
mveOriginalGriff28-Jan-24 21:13 
GeneralRe: Wordle 954 - 4 4 me Pin
pkfox28-Jan-24 21:15
professionalpkfox28-Jan-24 21:15 
GeneralRe: Wordle 954 Pin
Sander Rossel28-Jan-24 21:42
professionalSander Rossel28-Jan-24 21:42 
GeneralRe: Wordle 954 Pin
ChandraRam29-Jan-24 2:37
ChandraRam29-Jan-24 2:37 
GeneralRe: Wordle 954 Pin
Cp-Coder29-Jan-24 1:22
Cp-Coder29-Jan-24 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.