简体   繁体   English

Visual Studio 2010未运行两个项目中的第一个

[英]Visual Studio 2010 not running the first of two projects

So I have two projects in VS 2010, the first is a windows form app that handles the configuration of a game (the two projects together make up a game). 因此,我在VS 2010中有两个项目,第一个是处理游戏配置的Windows窗体应用程序(两个项目共同组成一个游戏)。

The second project (that is a dependency of the first / the first has a reference to it) is an XNA game. 第二个项目(即第一个项目的依赖项/第一个项目的引用)是XNA游戏。 Since I integrated the two, everything has been fine, I press the play button, the first form in the first project opens, I can configure it through another form, then that form runs the game. 由于我将两者集成在一起,所以一切都很好,我按了播放按钮,打开了第一个项目中的第一个窗体,我可以通过另一个窗体进行配置,然后该窗体运行游戏。

Now what happens is when I press play VS skips over the first project entirely, and starts the game. 现在发生的是,当我按下播放键时,VS会完全跳过第一个项目,然后开始游戏。 This is really really weird, it started happening just after I restarted my computer and I can't figure out why it is happening. 这真的很奇怪,它是在重新启动计算机后才开始发生的,我不知道为什么会发生。

It sounds like the startup project has been changed from your Windows Form to your XNA game. 听起来好像启动项目已从Windows窗体更改为XNA游戏。 They are both part of the same solution, yes? 它们都是同一解决方案的一部分,是吗?

Take a look here . 在这里看看。

Make sure the startup project in your solution is the Windows Form and not the XNA game. 确保解决方案中的启动项目是Windows Form,而不是XNA游戏。

I think your files from temp is deleted. 我认为您的temp文件已删除。

Can you post screen shot so that we can figure out what's wrong in VS ? 您可以发布屏幕截图,以便我们找出VS中的问题吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM