Skip to content

Conversation

@kzu
Copy link
Member

@kzu kzu commented Sep 10, 2025

File-based apps default to having PublishAot=true now, meaning by default things like System.Text.Json won't work OOB unless you add the source generator-based context or explicitly enable reflection-based type info.

This is not very conducive to quickly running scripts and severely limits what you can do by default. Since runcs' purpose is to RUN (but never publish/pack) apps, we turn this default off unless you explicitly opt-in with --aot switch.

See dotnet/sdk#49189 (comment)

@kzu kzu added the enhancement New feature or request label Sep 10, 2025
@kzu
Copy link
Member Author

kzu commented Sep 10, 2025

153 passed 153 passed 1 skipped

🧪 Details on Ubuntu 24.04.3 LTS

from dotnet-retest v0.7.2 on .NET 8.0.20 with 💜 by @devlooped

File-based apps default to having PublishAot=true now, meaning by default things like System.Text.Json won't work OOB unless you add the source generator-based context or explicitly enable reflection-based type info.

This is not very conducive to quickly running scripts and severely limits what you can do by default. Since runcs' purpose is to RUN (but never publish/pack) apps, we turn this default off unless you explicitly opt-in with --aot switch.

See dotnet/sdk#49189 (comment)
@kzu kzu enabled auto-merge (rebase) September 10, 2025 21:46
@kzu kzu merged commit 022cfcc into main Sep 10, 2025
7 checks passed
@kzu kzu deleted the dev/noaot branch September 10, 2025 21:47
@devlooped devlooped locked and limited conversation to collaborators Oct 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants