MCPcopy Create free account
hub / github.com/auth0/auth0-cli / readDotnetMobileBundleID

Function readDotnetMobileBundleID

internal/cli/quickstart_detect.go:647–653  ·  view source on GitHub ↗

readDotnetMobileBundleID extracts the element from .csproj content. Used for MAUI and .NET Mobile apps to generate callback URL guidance. Returns empty string if the element is absent.

(content string)

Source from the content-addressed store, hash-verified

645// Used for MAUI and .NET Mobile apps to generate callback URL guidance.
646// Returns empty string if the element is absent.
647func readDotnetMobileBundleID(content string) string {
648 matches := csprojAppIDRegex.FindStringSubmatch(content)
649 if len(matches) < 2 {
650 return ""
651 }
652 return strings.TrimSpace(matches[1])
653}
654
655// csprojAppIDRegex matches the <ApplicationId> element in a .csproj file.
656var csprojAppIDRegex = regexp.MustCompile(`<ApplicationId>\s*([a-zA-Z][a-zA-Z0-9._-]*)\s*</ApplicationId>`)

Callers 3

resolveNativeBundleIDFunction · 0.85
DetectProjectFunction · 0.85

Calls

no outgoing calls

Tested by 1