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

Function findCsprojContent

internal/cli/quickstart_detect.go:448–461  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

446}
447
448func findCsprojContent(dir string) (string, bool) {
449 entries, err := os.ReadDir(dir)
450 if err != nil {
451 return "", false
452 }
453 for _, e := range entries {
454 if !e.IsDir() && strings.HasSuffix(e.Name(), ".csproj") {
455 if data, fileErr := os.ReadFile(filepath.Join(dir, e.Name())); fileErr == nil {
456 return string(data), true
457 }
458 }
459 }
460 return "", false
461}
462
463// mobileTFMRegex matches .NET mobile Target Framework Monikers (net*-android or net*-ios).
464// A bare substring match on "-android" / "-ios" can produce false positives on package

Callers 2

resolveNativeBundleIDFunction · 0.85
DetectProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected