Get
Get
CC#
Created by SlimeShulker on 1/4/2025 in #help
Please can somebody help me with this .txt file?
Can you try call Directory.GetCurrentDirectory() and print that? Then copy that path to File Explorer and see if it shows the path to the expected dna.txt or not
14 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
i'm trying to create a compiler though and the function takes the name outputName to make $"{outputName}.dll" and $"{outputName}.exe" so like I can't just create a new project every time unfortunately (user can provide like literally any name)
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
In this case, can I copy the .exe from any other non-AOT or self contained project that I have, rename it to <outputName>.exe, then it will work as expected?
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
I think it will work but probably not something that I want
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
hmm... yeah this probably sounds way too complicated for what I'd like 😅 I think I'll go with .bat for now. Maybe one day I can make an exe. (i'm designing this to be portable and be able to be used with people without full development setup a bit so...)
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
However, I'd really love to have Output.exe instead of Output.bat. Does somebody have some insights of how can I make that?
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
No description
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
Here's what I have now. I had to read into the .NET source code in github to determine a bit of how they generate dll.
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
Alright I think I got the first version working. Thank you for this!
19 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
hmm... I'm fine with having to generate another .dll file, but in this case how to build the .exe alongside to use dotnet to run it? Also how to generate that dll? Is it just using the earlier example on that MS Learn page that generates dll instead of that example?
you need to output as a .dll and use dotnet to run it
Also, I'm not 100% what you mean by this, are you suggesting that if I output a dll, there is a way to run it with a dotnet command or some sort? If so, can I have the documentation for that so I can use that to test the persisted assembly first, although in the end I'd like an exe that a user can double clicks.
19 replies