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
Copy file name to clipboardexpand all lines: docs/articles/faq.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,17 @@ See also: [BenchmarkDotNet#237](https://github.com/dotnet/BenchmarkDotNet/issues
13
13
14
14
***Q** Why can't I install BenchmarkDotNet in a new .NET Core Console App in Visual Studio 2017?
15
15
16
-
**A** BenchmarkDotNet supports only netcoreapp3.1+.
16
+
**A** BenchmarkDotNet supports only netcoreapp2.0+.
17
17
Some old Visual Studio 2017 can create a new application which targets netcoreapp1.0.
18
-
You should upgrade it up to 3.1.
18
+
You should upgrade it up to 2.0.
19
19
If you want to target netcoreapp1.0 in your main assembly, it's recommended to create a separated project for benchmarks.
20
20
21
21
***Q** I created a new .NET Core Console App in Visual Studio 2017. Now I want to run my code on CoreCLR, full .NET Framework, and Mono. How can I do it?
22
22
23
23
**A** Use the following lines in your `.csproj` file:
@@ -33,7 +33,7 @@ If you want to target netcoreapp1.0 in your main assembly, it's recommended to c
33
33
[CoreJob, ClrJob, MonoJob]
34
34
```
35
35
36
-
* **Q** My source code targets old versions of .NET Framework or .NET Core, but BenchmarkDotNet requires `net461` and `netcoreapp3.1`. How can I run benchmarks in this case?
36
+
* **Q** My source code targets old versions of .NET Framework or .NET Core, but BenchmarkDotNet requires `net461` and `netcoreapp2.0`. How can I run benchmarks in this case?
37
37
38
38
**A** It's a good practice to introduce an additional console application (e.g. `MyAwesomeLibrary.Benchmarks`) which will depend on your code and BenchmarkDotNet.
39
39
Due to the fact that users usually run benchmarks in a develop environment and don't distribute benchmarks for users, it shouldn't be a problem.
@@ -20,10 +20,10 @@ How do you know that BenchmarkDotNet has failed to build the project? BDN is goi
20
20
// Build Error: Standard output:
21
21
22
22
Standard error:
23
-
C:\Projects\BenchmarkDotNet\samples\BenchmarkDotNet.Samples\bin\Release\net8.0\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.
23
+
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
24
25
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\net8.0\c6045772-d3c7-4dbe-ab37-4aca6dcb6ec4
26
+
// It can be found in C:\Projects\BenchmarkDotNet\samples\BenchmarkDotNet.Samples\bin\Release\netcoreapp2.1\c6045772-d3c7-4dbe-ab37-4aca6dcb6ec4
27
27
// Please follow the troubleshooting guide: https://benchmarkdotnet.org/articles/guides/troubleshooting.html
boolexcludeAllocationQuantumSideEffects=benchmarkCase.GetRuntime().RuntimeMoniker<=(RuntimeMoniker)10;// the issue got fixed for .NET Core 2.0+ https://github.com/dotnet/coreclr/issues/10207
42
+
boolexcludeAllocationQuantumSideEffects=benchmarkCase.GetRuntime().RuntimeMoniker<=RuntimeMoniker.NetCoreApp20;// the issue got fixed for .NET Core 2.0+ https://github.com/dotnet/coreclr/issues/10207
:thrownewPlatformNotSupportedException($"netcoreapp{version.Major}.{version.Minor} is no longer supported. Use a newer runtime version or use BenchmarkDotNet v0.14.X or older.");
0 commit comments