什么禁用了“运行项目”在表达式混合 3 中
我正在 Expression Blend 3 中开发 Sketchflow (Silverlight) 项目。直到今天它一直运行良好,现在我无法运行该项目。具体来说,在“项目”菜单中,“运行项目”选项现在呈灰色(所有其他选项都很好)。 F5也没有任何效果。
我显然在某个地方弄乱了代码,但我找不到任何有关导致“运行项目”选项被禁用的信息。这显然有助于故障排除。有人知道是什么控制这个功能吗?
我可以毫无问题地构建项目。如果我打包项目(因此它在 Expression 之外运行),这也可以正常工作。它只是从表达式启动它不起作用。
I am developing a Sketchflow (Silverlight) project in Expression Blend 3. It has been working fine up until today, now I cannot run the project. Specifically in the Project menu the "Run Project" option is now greyed out (all the other options are fine). F5 also doesn't have any effect.
I've obviously messed up the code somewhere but I can't find any information on what could cause the "Run Project" option to be disabled. This would obviously help the troubleshooting. Does anybody know what controls this functionality?
I can build the project no problem. And if I package the project (so it runs outside Expression) this also works fine. It is just launching it from Expression that doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
右键单击项目(在项目窗格中)并验证是否选中“启动项目”。显然我在某个时候不小心取消了它。
Right-click on the project (in the project pane) and verify that "Startup Project" is checked. I had obviously accidentally unchecked it at some point.
通常,当您创建新的 Silverlight 解决方案时,Blend 或 VS 会创建一个包含两个项目的解决方案。一个会被称为
MyProject
,另一个会被称为smth。就像MyProjectScreens
。MyProjects
不包含太多 Silverlight 代码,它只是带有Default 的“包装器”(或者换句话说“它包含实际 SL 屏幕的引导代码”)。 html
和Default.aspx
和App.xaml
。MyProject
是启动项目。MyProjectScreens
项目又是您实际的 SL 项目。 (这不是启动项目)。OP 问题的解决方案,也许 Blend 不知何故弄乱了解决方案配置文件(尽管 VS 对它们没问题),并且我的
MyProject
项目已从解决方案资源管理器中消失。您所要做的就是右键单击解决方案,单击“添加现有项目”并导航到我的解决方案文件夹并选择项目文件。 (是的,还要确保添加MyProject
时将其标记为“启动项目”(正如 @Hugh 提到的那样)。HTH
Usually when you create new Silverlight solution Blend or VS would create a solution with two projects in it. One would be called something like
MyProject
and another would be called smth. likeMyProjectScreens
.The
MyProjects
doesn't contain much of Silverlight code, it's rather meant to be just "wrapper" (or in other words "it contains bootstrapping code for your actual SL screens") withDefault.html
andDefault.aspx
andApp.xaml
. AndMyProject
is the startup project.The
MyProjectScreens
project in turn - is your actual SL project. (And it is NOT startup project).THE SOLUTION TO OP'S PROBLEM, Maybe Blend somehow messed up solution configuration files (even though VS was fine with them) and my
MyProject
project has disappeared from the solution explorer. All you have to do is to right click on solution, click "Add Existing Project" and navigate to my solutions folder and choose the project file. (Yeah and also make sure that whenMyProject
is added it is marked as "Startup Project" (as @Hugh mentions).HTH