什么禁用了“运行项目”在表达式混合 3 中

发布于 2024-08-17 21:11:26 字数 286 浏览 4 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

得不到的就毁灭 2024-08-24 21:11:26

右键单击项目(在项目窗格中)并验证是否选中“启动项目”。显然我在某个时候不小心取消了它。

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.

天荒地未老 2024-08-24 21:11:26

通常,当您创建新的 Silverlight 解决方案时,Blend 或 VS 会创建一个包含两个项目的解决方案。一个会被称为MyProject,另一个会被称为smth。就像MyProjectScreens
MyProjects 不包含太多 Silverlight 代码,它只是带有 Default 的“包装器”(或者换句话说“它包含实际 SL 屏幕的引导代码”)。 htmlDefault.aspxApp.xamlMyProject 是启动项目

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. like MyProjectScreens.
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") with Default.html and Default.aspx and App.xaml. And MyProject 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 when MyProject is added it is marked as "Startup Project" (as @Hugh mentions).

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文