Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我启用 Out of Browser 应用程序设置,该应用程序将无法运行,甚至无法调试。Visual Studio 编译应用程序,切换到调试布局,但立即结束。
有任何想法吗?
创建了一个新的 Silverlight 项目并将所有文件移至新项目。现在它可以正常工作了。我对此没有任何解释,但它奏效了!
您是否完成了这两个链接中提到的步骤?
http://johnpapa.net/10-steps-to-debug-silverlight-out-of-browser-applications-without-attaching
http://indiandotnet.wordpress.com/2011/01/10/silverlight-out-of-browser-application-oob-apps-in-simple-steps/
对于遇到此问题的其他人,我也遇到了这种情况。我按照 Elodie 的建议创建了一个新项目并进行了文件夹比较。最终它归结为一个 InBrowserSettings xml 文件。通过手动编辑 .csproj 文件以删除对该文件的引用,然后将其从“属性”文件夹中删除,已修复此问题。