| 13 Aug 2025 |
Emma [it/its] | i thought nativeaot and multi-file were mutually exclusive? | 17:19:34 |
Whovian9369 | Can't say I kno | 17:19:56 |
Whovian9369 | * Can't say I know | 17:19:58 |
6pak | nativeaot has to be self-contained, yeah | 17:20:22 |
6pak | ready2run is a form of aot, but that's not nativeaot | 17:20:55 |
Whovian9369 | My friend seems to think that AoT (I'm assuming nativeaot) can be enabled while selfContained = false; is set (seemingly to not need the runtime at all?), but the above error seems to claim otherwise. | 17:29:43 |
Whovian9369 | Admittedly I'm not quite sure what I'm asking, since the build works fine with dotnetInstallFlags = [ "-p:PublishAot=false" ]; selfContainedBuild = false; but not with ... [ "-p:PublishAot=true" ]; selfContainedBuild = false; which is what my friend seems to want me to try. | 17:32:47 |
Whovian9369 | If they're mutually exclusive on the Dotnet side then that's completely fine, I will just have to make sure he's aware of that fact. 😅 | 17:33:36 |
Whovian9369 | Or this is a huge misunderstanding on my part with the dev, ugh 😓
Oh well, I'll figure it out eventually. Thanks for the thoughts Emma and 6pak! | 17:41:12 |
Whovian9369 | Okay, sorry, I think I've figured out the situation again and I was slightly wrong.
- He wants me to try building with AoT (again seemingly NativeAoT) enabled and self-contained disabled, which seems reasonable
- Trying to do so throws an error, seemingly due to Emma's point about them being mutually exclusive.
- Friend seems to insist that I can do AoT and
--no-self-contained (via selfContainedBuild = false;) even though it appears to me that I cannot due to PublishTrimmed
| 17:55:28 |
Whovian9369 | * Okay, sorry, I think I've figured out the situation again and I was slightly wrong.
- He wants me to try building with AoT (again seemingly NativeAoT) enabled and self-contained disabled, which seems reasonable
- Trying to do so throws an error, seemingly due to Emma's point about them being mutually exclusive.
- Friend seems to insist that I can do AoT and
--no-self-contained (via selfContainedBuild = false;) even though it appears to me that I cannot due to PublishTrimmed being implied, throwing the earlier error.
| 17:56:00 |
6pak |  Download image.png | 17:56:11 |
6pak | buildDotnetModule is adding the PublishTrimmed=false | 17:56:20 |
6pak | I assume publishaot simply overrides --no-self-contained when using dotnet cli normally | 17:56:40 |
Whovian9369 | That's my assumption too, yeah. | 18:02:55 |
Whovian9369 | Is there a good way to print the used flags used during a build? I feel like that might help expose what's being done "incorrectly"... | 18:07:28 |
Whovian9369 | In the mean time, I'm testing "-p:PublishTrimmed=true" as a dotnetInstallFlags option to see what happens. | 18:09:57 |
Whovian9369 | ... The answer is seemingly nothing due to the hook seemingly overriding it. | 18:10:24 |