你如何select调试哪个构建目标?

How do you select which build target to debug?

如果我将项目多目标定位到 .Net Core 3.1 和 .Net Framework 4.8,并且我 select 调试 |开始调试,Visual Studio 2019 开始使用 .Net Framework 构建目标进行调试会话。

我怎样才能让它启动 .Net Core 构建目标?

这是我的测试项目文件:

<PropertyGroup>
  <OutputType>Exe</OutputType>
  <TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

这里是测试代码:

using System;

namespace Demo
{
    class Program
    {
        public static void Main(string[] args)
        {
            #if NET48
                Console.WriteLine(".Net Framework");
            #else
                Console.WriteLine(".Net Core");
            #endif
        }
    }
}

项目中没有其他文件。我正在使用 Visual Studio 2019 版本 16.7.2.

为了清楚起见,如果您单击开始调试工具栏项旁边的下拉菜单,您将看到定位选项

注意 :我正在尝试找到这个的实际文档... zilch