wasabi
wasabi
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
There's another associated process for single file executables, and something much more complicated for NAOT, etc.
15 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
apphost.exe itself is just a small launcher that fires up the CLR, and it itself is written in C.
15 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
So you can get and do that yourself.
15 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
It is simply copied into your output, and the .runtimeconfig.json file is plopped next to it.
15 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
There is no such thing as .exe's generated or used by the Core runtime anymore. When you build a project in MSBuild, and you get an exe, what that actually is is a copy of apphost.exe, which is prebuilt and distributed as a binary within the SDK itself.
15 replies
CC#
Created by Sammy on 1/2/2025 in #help
how to add inheritance between two c# files?
What "doesn't work?"
47 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
or you could just go look. with your eyes
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
You can probably check something in procfs to see how many are used
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
watch != instance
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
Actually, looking at your error, it's not erroring because of max watches, but because of max instances. Might be the case you're creating too many FSWs
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
Nope. Gotta increase the per-user limit.
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
And Linux limits those.
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
It's been awhile since I looked, but from what I remember it opens a new inotify channel for each watched directory.
28 replies
CC#
Created by Mazranel on 9/12/2024 in #help
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
The issue is INcludeSubdiretories, probably.
28 replies
CC#
Created by Cavecrush on 9/3/2024 in #help
Help on how async/await works
async Task Foo()
{
var i = 1;
await OtherThing();
return i;
}
async Task Foo()
{
var i = 1;
await OtherThing();
return i;
}
When you call Foo the first line runs. The second line runs, calling OtherThing, which returns a Task. Because you are awaiting that Task, a new Task is created that is linked to the Task that returns from OtherThing. That new task is set up to, upon completion, jump back into line 3. Whenever that happens, the new task has it's result set to i, and is marked completed, so the caller of Foo then has a Task that will eventually return 1, but only after it's bneen resumed by the first task returned by OtherThing.
12 replies
CC#
Created by Cavecrush on 9/3/2024 in #help
Help on how async/await works
So, 'async' turns a method into something magical. A state machine. That is organized so that different parts of the method can be invoked independently. What actually happens when await happens is 'control is returned', which literally means the method returns to it's caller. But it returns a Task. That Task can later be used to resume execution of the rest of the method.
12 replies
CC#
Created by MrScopes on 8/31/2024 in #help
Process not spawning as a child
If you want processes to die in response to their parents, you need to use a Job.
9 replies
CC#
Created by MrScopes on 8/31/2024 in #help
Process not spawning as a child
There's not really a real process hierarchy in windows. The best you get is that each process maintains the PID of the process that creates it, but that is used for nothing.
9 replies
CC#
Created by Yunivers on 8/24/2024 in #help
Adding modding capabilities to my C# game
The only time people use things like Detours, or Harmony, or other runtime mods, etc, is when the original app isn't built with a plugin model.
41 replies
CC#
Created by Yunivers on 8/24/2024 in #help
Adding modding capabilities to my C# game
It ain't hard.
41 replies