只有应用程序在安装时,Visual Studio的工作?应用程序、工作、Visual、Studio

2023-09-06 07:05:26 作者:尐孑,涐视沵如命っ

予有放在一起一个DLL这是由​​大量的应用。他们编译和运行就好在我的机器。但是,如果我尝试部署它们,我只是得到从Windows标准的应用程序崩溃的消息时,我尝试运行它们。我算了一下,因为他们是.NET,我可以安装Visual Studio和看到异常是什么。但是,一旦我安装Visual Studio,一切工作正常!我试图找出任何东西(如.NET框架的某些版本)的VS安装并尝试复制它,但仍没有将工作到本身安装了Visual Studio。我当然不能要求人们安装Visual Studio使用我的应用程序。我该怎么办?

I have a DLL put together which is used by a number of applications. They compile and run just fine on my development machine. But if I try to deploy them, I just get the standard "your application has crashed" message from Windows when I try to run them. I figured, since they're .NET, I could install Visual Studio and see what the exception is. But once I install Visual Studio, everything works fine! I've tried to identify anything (like certain versions of the .NET framework) that VS installs and try to replicate it, but still nothing will work till visual studio itself is installed. I certainly can't require people to install visual studio to use my app. What can I do?

推荐答案

如果你从一个控制台应用程序引用的DLL,它应该转储一个堆栈跟踪到控制台,当它崩溃...这可能会有帮助。

If you reference the DLL from a console app, it should dump a stack trace to the console when it crashes... that may help.

另外,尝试enabling融合日志以帮助调试问题找到引用。

Also, try enabling the Fusion log to help debug issues with finding references.