Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

App only runs inprocess on dev machine

Aperta
#2,452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp

Direzione di ricerca

Inizia riproducendo i due percorsi BenchmarkSwitcher e BenchmarkRunner.Run sulle macchine Windows 10 e Windows 11 descritte, confrontandoli con DebugInProcessConfig. Traccia l’esecuzione a partire dalla convalida del benchmark, usando la configurazione getting-started come baseline. Il lavoro è completato quando l’esecuzione non in-process supera la convalida, restituisce un riepilogo e produce artefatti dei risultati senza un’eccezione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Dev machine is on Windows 10 with net8.0 sdk installed.
Alternate machine is on Windows 11 with net8.0 sdk installed.
Set up project exactly as outlined in getting started.

On the dev machine, using
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, new DebugInProcessConfig());
works. The only thing missing is that no result artifacts are produced.

On the dev machine, when using
var summary = BenchmarkRunner.Run(config, args);
OR
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
then the program show //Validating benchmarks and then exits.
No exception is thrown.
It never progresses to the next line so nothing can be extracted from the summary.
There is nothing logged in the Event Viewer.

image

It's exiting somewhere here, but I haven't been able to deconstruct it enough to glean why it would work in one environment and not another.

image

Lingua principale
C#
Stelle
11.5k
Fork
1.1k
Merge medio
1g 21m
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/BenchmarkDotNet

Tutte le issue di dotnet/BenchmarkDotNet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.