Thinker
Thinker
CC#
Created by Daiko Games on 5/10/2025 in #help
✅ How to add Text to a specific Line of a Document
If it contains json then it might be easier to parse it into a data structure, modify it, then serialize it back into json and overwrite the file.
26 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
You can try restarting VS and clearing the cache
32 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
This is pretty common with SGs
32 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
Does it compile if you build it from the comnand line?
32 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
yes it should
32 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
Right, so it works as intended. You can't reference generated code inside the generator which generates that code.
32 replies
CC#
Created by HeavenVR on 5/8/2025 in #help
Roslyn Incremental CodeGen from text files not working
What exactly is it you cannot reference in the generator project?
32 replies
CC#
Created by LastExceed on 5/6/2025 in #help
consolidating my understanding of `async`/`await` in C# and Rust
Note that tasks aren't even necessarily asynchronous, you can use a TaskCompletionSource to create a task which is completed when some piece of code says it's completed. Tasks are, as Canton mentioned, just an operation which may or may not be complete yet.
31 replies
CC#
Created by Dave The Magical Cheese Wizard on 4/20/2025 in #help
✅ I need help
Other than that, what kind of stuff do you want to make? Games? Desktop apps? Web apps?
11 replies
CC#
Created by Dave The Magical Cheese Wizard on 4/20/2025 in #help
✅ I need help
$helloworld is a good starting point
11 replies
CC#
Created by MainaJauro on 4/10/2025 in #help
Sending Email from C# Windows Form, Several Effort hasn't yielded any effort
$code
18 replies
CC#
Created by MainaJauro on 4/10/2025 in #help
Sending Email from C# Windows Form, Several Effort hasn't yielded any effort
Also can you please send your code and not an rtf file
18 replies
CC#
Created by MainaJauro on 4/10/2025 in #help
Sending Email from C# Windows Form, Several Effort hasn't yielded any effort
What language is this...?
18 replies
CC#
Created by vendeten on 4/7/2025 in #help
Wanting to make a basic, super simple, proof of concept platformer game in c#
If you feel more comfortable with Python then you could check out Pygame
9 replies
CC#
Created by vendeten on 4/7/2025 in #help
Wanting to make a basic, super simple, proof of concept platformer game in c#
Or are you required to do the project with nothing but C#?
9 replies
CC#
Created by vendeten on 4/7/2025 in #help
Wanting to make a basic, super simple, proof of concept platformer game in c#
Well, first step would probably be to pick a game engine if that's allowed.
9 replies
CC#
Created by VoidPointer on 4/5/2025 in #help
Too Much Indentation When Rendering a Scriban Template
tl;dr for all the {{ }} on their own lines, you'll have to use {{~ ~}} to strip the whitespace properly
4 replies
CC#
Created by gönnyd on 3/28/2025 in #help
Switch Expressions
-# granted if you didn't need that I assume you would be using INumber.Parse
17 replies
CC#
Created by gönnyd on 3/28/2025 in #help
Switch Expressions
Could also pass in the type as a generic, unless you really need to be able to pass arbitrary types
17 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
It's somewhat odd, but you don't need to worry about it too much unless you already know what records are.
25 replies