升级到Service Fabric SDK v2.3.301后无法调试项目 [英] Cannot debug project after upgrading to Service Fabric SDK v2.3.301

查看:109
本文介绍了升级到Service Fabric SDK v2.3.301后无法调试项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近升级到Service Fabric SDK v2.3.301,但是由于某种原因我的项目被破坏了.我无法调试项目,但出现以下错误:无法启动具有类库输出类型的项目."

Recently upgraded to Service Fabric SDK v2.3.301, but for some reason my project got corrupted. I cannot debug the project, I get the following error: "A project with an Output Type of Class Library cannot be started."

似乎该解决方案现在无法识别Service Fabric应用.但是,我仍然可以部署到本地群集.

It seems that the solution now fails to recognize the Service Fabric App. Yet I am able to deploy to my local cluster.

有人在升级到新的SDK时遇到类似的问题吗?

Anyone had similar issues while upgrading to the new SDK?

谢谢

PS以防万一,服务结构应用已被设置为启动项目:o)

PS Just in case, the service fabric app is the already set as startup project :o)

推荐答案

我有几次相同的问题.我无法确定来源.但我已通过以下操作解决了该问题:

I have had the same issue a couple of times. I have not been able to identify the source. But I have solved it with the following actions:

  1. 关闭所有Visual Studio窗口.
  2. 重新启动Service Fabric服务:在Windows运行工具中键入services.msc.查找Microsoft Service Fabric主机服务.右键单击+重新启动.
  3. 重置本地群集:在任务栏右侧的通知区域中查看Service Fabric本地群集管理器图标.右键单击+重置本地群集.
  4. 在Visual Studio中打开有问题的解决方案.
  5. 清洁和重建解决方案.
  6. 最后运行您的解决方案(按F5键).

希望这会有所帮助.

这篇关于升级到Service Fabric SDK v2.3.301后无法调试项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆