[否符号将被装载"在新的应用程序框架vb.net项目将被、应用程序、符号、框架

2023-09-06 14:29:19 作者:不介意孤独

在vb.net 2008年,当我开始一个新项目,则默认为启用应用程序框架。我想补充以下code到一个按钮单击处理程序,以在新项目的主要形式有:

 昏暗的K作为整数
昏暗的参考译文字符串
对于k = 1至500万
  S = MID(S&功放; K,1,30)
下面k
结束小组
 

然后,当我试图打破执行使用暂停键调试,我得到的消息没有符号加载任何调用堆栈帧的源$ C ​​$ C无法显示。如果我取消选中启用应用程序框架项目的选项,它打破和调试正常。 (这也发生在其他的code - 不只是这个例子)。

有没有办法在默认情况下禁用应用程序框架中的一个新的项目? 有没有设置,将允许与应用程序框架项目启动,打破和调试? 在我有没有裂伤安装?这是最近VS2008安装。有一些选择,我应该在安装过程中?选择 解决方案

是的。编辑MyApplication.myapp文件有MySubMain项设置为false,设在这里: C:\ Program Files文件\微软的Visual Studio 9.0 \ Common7 \ IDE \ ProjectTemplatesCache \的VisualBasic \的Windows \ 1033 \ WindowsApplication.zip

VB中菜单项的内缩符号是什么

这将默认的项目模板,以禁用该功能。

我可以调试code没有问题与应用程序框架启用或禁用,我不知道为什么你得到这个错误。你有什么事情,指出了一些其他可执行的调试选项卡上设置?是在编译或调试选项卡设置配置属性,以释放可能?

我不认为你这样做。

In vb.net 2008, when I start a new project, it defaults to "Enable Application Framework." I add the following code to a button click handler to the main form in the new project:

Dim k As Integer
Dim s As String
For k = 1 To 5000000
  s = Mid(s & k, 1, 30)
Next k
End Sub

Then, when I try to break execution to debug using the pause button, I get the message "No symbols are loaded for any call stack frame. The source code cannot be displayed." If I uncheck the "Enable Application Framework" project option, it breaks and debugs properly. (This also happens with other code -- not just this example).

Is there a way to disable the Application Framework by default in a new project? Is there a setting that will allow a project with Application Framework enabled to break and debug? Did I mangle the installation? This is a recent VS2008 installation. Is there some option I should have selected during installation?

解决方案

Yes. Edit the MyApplication.myapp file to have the MySubMain entry set to false, located here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache\VisualBasic\Windows\1033\WindowsApplication.zip

That will default your project template to disable that feature.

I can debug that code without issue with Application Framework enabled or disabled, I'm not sure why you're getting that error. Do you have something set on the Debug tab that points to some other executable? Is the Configuration property on the Compile or Debug tab set to Release maybe?

I don't think you did.