commandlineparser / commandlineparser/commandline
System.Console.IsOutputRedirected Not supported on Xamarin.mac
- Langage dominant
- C#
- Étoiles
- 4.8k
- Forks
- 478
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Using commandlineparser on Xamarin.Mac Modern throws a PlatformNotSupportedException when trying to set MaximumDisplayWidth. I found some older issues with docker where setting `MaximumDisplayWdith` explicitly would fix the issue. Unfortunately this won't work here, as the call to `System.Console.IsOutputRedirected` happens in the ParserSettings constructor.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par inspecter le constructeur de ParserSettings, où l’appel à System.Console.IsOutputRedirected est signalé. Reproduisez l’échec sur Xamarin.Mac Modern avec commandlineparser et déterminez comment MaximumDisplayWidth est initialisé. C’est terminé lorsque la construction de ParserSettings ne lève plus PlatformNotSupportedException sur cette plateforme.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 40/100