Visual Studio-2019无法开始调试

便当盒

我正在与Unity合作。

在Unity中,我会构建程序。这是一个非常简单的程序。它只是我在屏幕上放置的一个多维数据集。

我单击生成,然后创建了Visual Studios解决方案。

我在Visual Studios 2019中打开此解决方案,然后单击开始(除了开始没有其他选项)。

这是我的屏幕上显示的内容:

运行程序后记录

启动后出现错误信息

如何摆脱错误消息?

编辑:

我正在尝试与Hololens模拟器一起玩。

这篇文章建议在安装Visual Studio 2019时不要为Unity安装工具,这就是为什么我不这样做的原因。

编辑#2:

这是我来自Visual Studio 2019的整个解决方案的图像。

在此处输入图片说明

苏尼乌斯

Visual Studio solutions can have multiple projects inside of them. Each project generally produces a binary: an .exe, a .dll or a .lib file. If you look at the solution explorer (which you showed in your screenshot), you'll see those projects there. One of the projects will be bolded, and that is the project that is currently set as "Startup project". This is the project that Visual Studio will try to launch when you press F5 or "Start Debugging".

The reason you're getting this error is because your "Startup Project" is configured to be "Il2CppOutputProject". This project builds a .dll, and you cannot start a .dll.

To fix this, right click on "Chapter_2" project and select "Set this project as Startup Project" option. Now starting debugging should start working.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章