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
* don't remove the auto-generated files when the build fails
* print a nice error with a link to troubleshooting guide
* update the troubleshooting guide
// Build Exception: Microsoft (R) Build Engine version 15.9.8-preview+g0a5001fc4d for .NET Core
18
-
Copyright (C) Microsoft Corporation. All rights reserved.
19
-
20
-
C:\Program Files\dotnet\sdk\2.2.100-preview2-009404\Microsoft.Common.CurrentVersion.targets(4176,5): warning MSB3026: Could not copy "C:\Projects\corefx/bin/obj/AnyOS.AnyCPU.Release/BenchmarksRunner/netstandard/BenchmarksRunner.exe" to "C:\Projects\corefx\bin/AnyOS.AnyCPU.Release/BenchmarksRunner/netstandard/BenchmarksRunner.exe". Beginning retry 1 in 1000ms. The process cannot access the file 'C:\Projects\corefx\bin\AnyOS.AnyCPU.Release\BenchmarksRunner\netstandard\BenchmarksRunner.exe' because it is being used by another process. [C:\Projects\corefx\src\Common\perf\BenchmarksRunner\BenchmarksRunner.csproj]
10
+
// Validating benchmarks:
11
+
// ***** BenchmarkRunner: Start *****
12
+
// ***** Found 1 benchmark(s) in total *****
13
+
// ***** Building 1 exe(s) in Parallel: Start *****
C:\Projects\BenchmarkDotNet\samples\BenchmarkDotNet.Samples\bin\Release\netcoreapp2.1\c6045772-d3c7-4dbe-ab37-4aca6dcb6ec4\BenchmarkDotNet.Autogenerated.csproj(36,1): error MSB4025: The project file could not be loaded. Unexpected end of file while parsing Comment has occurred. Line 36, position 1.
24
+
25
+
// BenchmarkDotNet has failed to build the auto-generated boilerplate code.
26
+
// It can be found in C:\Projects\BenchmarkDotNet\samples\BenchmarkDotNet.Samples\bin\Release\netcoreapp2.1\c6045772-d3c7-4dbe-ab37-4aca6dcb6ec4
27
+
// Please follow the troubleshooting guide: https://benchmarkdotnet.org/articles/guides/troubleshooting.html
21
28
```
22
29
23
30
If the error message is not clear enough, you need to investigate it further.
24
31
25
32
How to troubleshoot the build process:
26
33
27
-
1.Configure BenchmarkDotNet to keep auto-generated benchmark files (they are being removed after benchmark is executed by default). You can do that by either passing `--keepFiles` console argument to `BenchmarkSwitcher` or by using `[KeepBenchmarkFiles]` attribute on the type which defines the benchmarks or by using `config.KeepBenchmarkFiles()` extension method.
28
-
2.Run the benchmarks
29
-
3. Go to the output folder, which typicaly is `bin\Release\$FrameworkMoniker` and search for the new folder with auto-generated files. The name of the folder is just Job's ID. So if you are using `--job short` the folder should be called "ShortRun". If you want to change the name, use `Job.WithId("$newID")` extension method.
34
+
1.Run the benchmarks.
35
+
2.Read the error message. If it does not contain the answer to your problem, please continue to the next step.
36
+
3. Go to the build artifacts folder (path printed by BDN).
30
37
4. The folder should contain:
31
38
* a file with source code (ends with `.notcs` to make sure IDE don't include it in other projects by default)
0 commit comments