Thanks for your guidance. I've managed to produce a problem using the project structure you've provided. On my machine, it looks like the problem is related to the targeted platform not being installed on my machine.
I've included the error log below, and I've
updated the documentation to include instructions on how to obtain this log in case anyone else gets hit with this problem. We have a task scoped right now to improve the error reporting here, as needing to dive through logs like this isn't an acceptable experience when trying to troubleshoot a common problem like this one.
Anyway, I recommend checking the link in the error log to see whether you have this specific platform version installed.
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Tracing enabled @ Mon Dec 28 23:37:52 2020 GMT
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: --- Invoked dotnet [version: 5.0.0, commit hash: cf258a14b70ad9069470a108f13765e0e5988f51] main = {
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: C:\Program Files\dotnet\dotnet.exe
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.dll
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: 14296
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: nCrunch_2a36ce6ad80e4f4ca5694e9e49e2151b
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: 0c3d5466f3704d6fba46776e19db594b
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\extensions\remco software\ncrunch for visual studio 2019\nCrunch.TestExecution.DotNetCore.dll
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: nCrunch.TestExecution.RemoteTaskRunner
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: False
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\project.dll.config.ncrunchconfig
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: }
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Reading fx resolver directory=[C:\Program Files\dotnet\host\fxr]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[1.0.5]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[1.1.2]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[1.1.9]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.0.0]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.0.3]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.0.5]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.0.7]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.0.9]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.0]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.11]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.12]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.16]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.2]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.6]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.1.9]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.2.1]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.2.4]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[2.2.6]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[3.1.3]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Considering fxr version=[5.0.0]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Detected latest fxr version=[C:\Program Files\dotnet\host\fxr\5.0.0]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Resolved fxr [C:\Program Files\dotnet\host\fxr\5.0.0\hostfxr.dll]...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Loaded library from C:\Program Files\dotnet\host\fxr\5.0.0\hostfxr.dll
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Invoking fx resolver [C:\Program Files\dotnet\host\fxr\5.0.0\hostfxr.dll] hostfxr_main_startupinfo
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Host path: [C:\Program Files\dotnet\dotnet.exe]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Dotnet path: [C:\Program Files\dotnet\]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: App path: [C:\Program Files\dotnet\dotnet.dll]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Tracing enabled @ Mon Dec 28 23:37:52 2020 GMT
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: --- Invoked hostfxr_main_startupinfo [commit hash: cf258a14b70ad9069470a108f13765e0e5988f51]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Checking if CoreCLR path exists=[C:\Program Files\dotnet\coreclr.dll]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: --- Executing in muxer mode...
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Using the provided arguments to determine the application to execute.
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Using dotnet root path [C:\Program Files\dotnet\]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: App runtimeconfig.json from [F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.dll]
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Runtime config is cfg=F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json dev=F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.dev.json
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Attempting to read runtime config: F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Attempting to read dev runtime config: F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.dev.json
[PID:14296 12:37:52.3577 ProcessOutputRedirectionErr-69] Process 3012: Runtime config [F:\Workspaces\14296\2\bin\Debug\net5.0-windows10.0.19041\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json] is valid=[1]
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: --- The specified framework 'Microsoft.Windows.SDK.NET.Ref', version '10.0.19041.10', apply_patches=1, version_compatibility_range=minor is compatible with the previously referenced version '10.0.19041.10'.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: --- Resolving FX directory, name 'Microsoft.Windows.SDK.NET.Ref' version '10.0.19041.10'
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: Multilevel lookup is true
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: Searching FX directory in [C:\Program Files\dotnet]
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: Attempting FX roll forward starting from version='[10.0.19041.10]', apply_patches=1, version_compatibility_range=minor, roll_to_highest_version=0, prefer_release=1
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: 'Roll forward' enabled with version_compatibility_range [minor]. Looking for the lowest release greater than or equal version to [10.0.19041.10]
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: No match greater than or equal to [10.0.19041.10] found.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: 'Roll forward' enabled with version_compatibility_range [minor]. Looking for the lowest release/pre-release greater than or equal version to [10.0.19041.10]
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: No match greater than or equal to [10.0.19041.10] found.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: Framework reference didn't resolve to any available version.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: It was not possible to find any compatible framework version
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: Multilevel lookup is true
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: The framework 'Microsoft.Windows.SDK.NET.Ref', version '10.0.19041.10' was not found.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: - No frameworks were found.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012:
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: You can resolve the problem by installing the specified framework and/or SDK.
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012:
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: The specified framework can be found at:
[PID:14296 12:37:52.3727 ProcessOutputRedirectionErr-69] Process 3012: -
https://aka.ms/dotnet-co...ch=x64&rid=win10-x64