知道为什么 VS2008 在解决方案重建结束时可靠地崩溃吗?
VS2008 SP1、Winforms 解决方案、VB.NET、针对 x86 和 .NET v2 进行编译
我的解决方案中有大约十几个项目,其中有几个 Windows 窗体项目和一些类库。
如果我重建解决方案,它会清除并重新编译所有项目,正如您所期望的......
然后消失,没有跟踪或错误消息。 由于我通过 Internet 通过 HTTP 重新连接到 VSS 2005,因此需要整整一个月的时间才能在加载所有内容的情况下启动备份,因此这非常令人恼火。
编译的应用程序本身工作正常,并且更改后的正常构建和运行也工作正常。
有什么想法可能是为什么吗? 我用谷歌搜索但没有取得多大成功。
提前致谢。
编辑:只是为了澄清,除了重构之外没有加载项! (我知道,我想我应该尝试卸载它,看看是否是这样,但它太有用了! - 我会看看是否有更新)。
并且没有自定义构建步骤。 它只是一个普通的 Winforms 应用程序,具有项目之间的引用(以及一些对用于互操作的 COM dll 的引用)。
感谢到目前为止的想法...
解决问题后编辑
好的,伙计们,再次感谢所有的想法。
原来是Refactor的版本! 我正在使用。 我安装了最新版本,崩溃停止了......然后重构! 也停止工作了。 于是我关闭了VS,卸载了Refactor! 完全,并重新安装了最新版本......现在我不再遇到神秘的崩溃,并且重构! 再次工作。
你可能会说,“呃,你为什么不在很久以前尝试一下”,这是一个公平的问题......你知道它是这样的 - 间歇性发生的事情......紧急优先事项的直接压力......以及当然,当时还没有新版本,而旧版本的好处也并非微不足道。 所以,第三者是罪魁祸首。
再次感谢..
VS2008 SP1, Winforms solution, VB.NET, compiling for x86 and .NET v2
I have about a dozen projects in the solution, with a couple of Windows forms projects and some class libraries.
If I rebuild the solution, it clears out and recompiles all the projects, as you'd expect...
... and then disappears without trace or error message. Since I'm reconnecting to VSS 2005 over HTTP across the internet, it takes all month to start back up with everything loaded, so it's incredibly irritating.
The compiled application itself works fine, and normal build and run after changes also works fine.
Any ideas why this might be? I've Googled without much success.
Thanks in advance.
EDIT: Just to clarify, No add-ins except Refactor! (I know, I guess I ought to try uninstalling it to see if it's that, but it's just too useful! - I will see if there's an update though).
And no custom build steps. It's just a vanilla Winforms app, with references between the projects (and some references to COM dlls for interop).
Thanks for the ideas so far..
EDIT AFTER PROBLEM SOLVED
Ok, guys, thanks again for all the ideas.
It turned out to be the version of Refactor! I was using. I installed the latest, and the crashing stopped... and Refactor! stopped working too. So I shut down VS, uninstalled Refactor! completely, and reinstalled the latest version... and now I no longer get the mysterious crashes, and Refactor! works again.
You might say, 'Duh, why didn't you try this ages ago', and it's a fair question... you know the way it is - something that happens intermittently... immediate pressures of urgent priorities... and of course the new version wasn't available then, and the benefits of the old version weren't trivial.
So, 3rd party addin the culprit.
Thanks again..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您是否使用了第三方插件,也会导致这种情况。
Do you use any third-party plug-ins, it will cause this too.
我在使用几个 WinForms 应用程序时遇到了这个问题。 我必须按照这个确切的顺序执行这些确切的步骤。
对我来说,共同点是发生这种情况的所有项目都是使用旧版本的 Visual Studio 创建的。 不过,这就是我所追踪到的问题。
我当时没有安装第 3 方插件。
希望这一点有帮助。
I had this issue with a couple of WinForms apps. I had to perform these exact steps in this exact order.
The common denominator for me is that all project that this happened to were created using older versions of Visual Studio. That's as far as I got tracking down the problem though.
I had no 3rd party plugins installed at the time.
Hope this little bit helps.
如果它是一个托管异常,那么您可能可以理解发生了什么,如果它不尝试在调用堆栈中查看谁是错误的 dll。
If its a managed exception then you can probably understand what happened, if it's not try to see in the callstack who is the faulting dll.
您是否有针对您正在构建的任何项目的自定义构建步骤? 他们可能是导致坠机的原因。
Do you have any custom build steps for any of the projects you're building? They could be causing the crash.
您忘记了 VSS 作为一个插件。
我建议您将源代码控制系统更改为SVN。 您可能需要几天甚至几周的时间来适应它,但这是值得的。
我知道这并不总是在您的目标范围内,但如果是的话,您将从这种改变中获得很多好处。
You're forgetting VSS as a plugin.
I recommend you to change your source code control system to SVN. It will cost you a couple of days or may be weeks to get used to it but it worth the pain.
I know that's not always in your desition scope but if it is you will have lots of benefits with that change.