feat(dotnet): detect bundled runtime in self-contained deployments (#10786)