asp.net - 如何在 Visual Studio 解决方案中使用 2 个 Web API 项目进行调试?
问题描述
我有一个包含 2 个项目的视觉工作室解决方案。两者都是 Web API(不是 .net 核心)。当我有一个项目时,我可以通过点击来调试它
http://localhost:53961/api/...
但是,我随后添加了第二个项目。如何开始调试第二个?它似乎没有达到断点。我明白了
No HTTP resource was found that matches the request URI
当我在 main 方法上设置断点时
// GET: api/<controller>
[HttpGet]
public async Task<Result> Get(string emails)
{
}
我看到一条消息:
The breakpoint will currently not be hit. No code has been loaded for this code location.
解决方案
推荐阅读
- cocoa - 快速同步滚动 NSTableView 与 NSOutlineView - 来自 NSScrollView 的实时滚动通知
- python - 有没有更快的方法来使用 python 从 CSV 中分离重复和不同的数据?
- java - 无法在 aws ec2 实例上安装 Java
- xaml - 如何在两个并排的标签上设置 TextColor 和 HorizontalOptions?
- php - 为 Hybridauth 提供程序 (WordPress) 设置自定义端点时遇到问题
- linux - 使用 Dockerfile 重新启动终端并运行命令
- javascript - 使用javascript取消选中复选框时清除字段
- ios - loadTimeRanges 是否足以表明 AVPlayer 已准备好播放?
- windows - 文件夹路径中的批处理通配符 (*) 指向随时间变化的目标文件夹名称
- erlang - gen_server:call vs. 直接调用函数