Skip to content

Benchmarks work in .NET 4.7.2 but not .NET Core 3.1 #1433

Closed
@peschkaj

Description

@peschkaj

When running a benchmark with .NET Framework 4.7.2, benchmarks proceed as expected. However, switching to .NET Core 3.1 results in a host of errors stating Generate Exception: Unable to find <Project> in <Folder> and its subfolders.

Running git diff shows the only difference being in the .csproj` file:

diff --git a/Source/Tests/PerformanceTests/PerformanceTests.csproj b/Source/Tests/PerformanceTests/PerformanceTests.csproj
index 793405c703..6a69534058 100644
--- a/Source/Tests/PerformanceTests/PerformanceTests.csproj
+++ b/Source/Tests/PerformanceTests/PerformanceTests.csproj
@@ -3,7 +3,7 @@
     <RootNamespace>RedGate.SqlMonitor.PerformanceTests</RootNamespace>
     <AssemblyName>RedGate.SqlMonitor.PerformanceTests</AssemblyName>
     <ImplicitlyExpandNETStandardFacades>False</ImplicitlyExpandNETStandardFacades>
-    <TargetFramework>net472</TargetFramework>
+    <TargetFramework>netcoreapp3.1</TargetFramework>
   </PropertyGroup>
   <ItemGroup>
     <PackageReference Include="BenchmarkDotNet" Version="0.12.1" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions