You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default CoconaApp makes it so that your app creates a FileSystemWatcher for the current directory the app is running on, which means it recursively lists all files in the current directory.
This made my app take over 5 minutes to run the --help command when I ran it from /.
My solution to this ended up being creating my own HostBuilder and then manually setting everything up:
varbuilder=newHostBuilder();builder.ConfigureServices((context,services)=>{services.AddLogging(logging =>{logging.AddSimpleConsole(x =>{x.ColorBehavior=Microsoft.Extensions.Logging.Console.LoggerColorBehavior.Enabled;x.IncludeScopes=true;x.SingleLine=true;x.TimestampFormat="HH:mm:ss ";});logging.AddDebug();logging.Configure(options =>{options.ActivityTrackingOptions=ActivityTrackingOptions.SpanId|ActivityTrackingOptions.TraceId|ActivityTrackingOptions.ParentId;});});// Configure other services.});builder.ConfigureCocona(args,configureApplication: app =>{// Configure your app's commands normally as you would with app});awaitbuilder.RunConsoleAsync(x =>x.SuppressStatusMessages=true);
The text was updated successfully, but these errors were encountered:
The default CoconaApp makes it so that your app creates a
FileSystemWatcher
for the current directory the app is running on, which means it recursively lists all files in the current directory.This made my app take over 5 minutes to run the
--help
command when I ran it from/
.My solution to this ended up being creating my own
HostBuilder
and then manually setting everything up:The text was updated successfully, but these errors were encountered: