我有一个带有两个项目的visual studio解决方案。两者都是web (不是.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.
发布于 2018-06-05 06:55:05
可以设置“多个启动项目”。在解决方案资源管理器中右击“解决方案”,然后单击“属性”。公共属性->启动项目,然后选择“多个启动项目”,然后将两个API的操作都设置为"Start“
https://stackoverflow.com/questions/50687616
复制相似问题