共享项目不会在调试模式下编辑和继续 [英] Shared Project don't edit and continue in debug mode

查看:69
本文介绍了共享项目不会在调试模式下编辑和继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个monogame的跨平台项目,其中包含一个带有便携式类库和共享项目的android,ios,桌面,uwp解决方案。



我尝试在任何解决方案中编辑在debug上运行的代码,出现此错误:





似乎有几个解决方案和正在使用共享项目的Visual Studio无法使用编辑和继续。



当我从其他项目中删除引用并只留下一个时,它又恢复运行。$


不好的一点是,在测试不同的项目时,我必须继续投入并接受所有其他项目的参考。 :/


如何解决这个问题?






M_S

解决方案

< blockquote>

 


"如果尚未加载程序集,则不允许进行更改意味着您尝试更改的代码不在Visual Studio可以找到/已构建的程序集中。也许你正在尝试调试一个没有编译成二进制文件的类。


如果您有多个项目,并且您尝试调试的类是一个未设置为该配置中的
构建 。转到 调试 - >配置管理器
并确认您已为正在调试的项目勾选了复选框。


检查二进制文件的输出路径,并确保它们都转到调用程序集可以找到的目录,即您可以尝试将所有程序集放在同一目录中。



也许以上可能有所帮助。


 


问候,


Fletcher


I'm working on a cross-platform project in monogame that contains an android, ios, desktop, uwp solution with a portable class library and a shared project.

When I try to edit the code running on debug in any of the solutions, this error appears:

it seems that as are several solutions and are using a shared project visual studio can not use Edit and Continue.

When I removed the references from the other projects and left only one, it came back up and running.

The bad part is that I'll have to keep putting in and taking references from all other projects when testing on a different project. :/

How to solve this?


M_S

解决方案

 

"Changes are not allowed if the assembly has not been loaded" means that the code you're trying to change is not in an assembly Visual Studio can find/has built. Maybe you're trying to debug a class which is not compiled into the binary.

When you have multiple projects and the class you are trying to debug is in one which is not set for building in that configuration. Go to Debug -> Configuration Manager and verify you have the check box ticked for the project you're debugging.

Check the output path of your binaries and make sure they all go to a directory which can be found by the calling assembly, i.e. you can try putting all assemblies to the same directory.

Maybe above could help.

 

Regards,

Fletcher


这篇关于共享项目不会在调试模式下编辑和继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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