将项目构建配置更改为调试模式

发布于 2024-10-24 07:16:30 字数 804 浏览 14 评论 0原文

我正在使用 VS 2008。每次运行应用程序时都会弹出一个弹出窗口。

以下是弹出窗口:

以下模块是用 启用优化或不调试 信息:

C:\Windows\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files\root\7c06d97f\c871fca3\ assembly\dl3\1ed1f335\00d7b454_9450ca01\BArcodingImaging.DLL

要调试此模块,请更改其 用于调试的项目构建配置 模式。为了抑制此消息, 禁用“警告 inf 没有用户代码 启动”调试器选项。

我已经尝试了 Google 上所有可用的链接来消除此错误,但没有任何效果。实际上大多数链接都是针对 VS 2005 的。但我使用的是 VS 2008。

使用了以下参考: http://social. msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1946cf16-ae70-4394-9cd9-9d35f3f012ed/ 还有《Code Guru》上的一篇。

在此处输入图像描述

I am using VS 2008. I am getting a PopUp everytime i run my application.

Following is the PopUp:

The following module was built with
optimizations enabled or without debug
information :

C:\Windows\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files\root\7c06d97f\c871fca3\assembly\dl3\1ed1f335\00d7b454_9450ca01\BArcodingImaging.DLL

To debug this module, change its
project build configuration to debug
mode. To suppress this message,
disable the "Warn inf no user code on
launch" debugger option.

I have tried all the links available on the Google to get rid of this error but nothing works. Actually most of the links are for VS 2005. But i am using VS 2008.

I used following reference:
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1946cf16-ae70-4394-9cd9-9d35f3f012ed/
And one on Code Guru.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(9

南汐寒笙箫 2024-10-31 07:16:30

1)点击菜单Tools>;设置并选择专家设置
2)出现了一个名为Build的新菜单。在其中选择配置管理器
3) 在活动解决方案配置中,点击新建...,如下所示:

在此处输入图像描述

4) 输入Debug作为名称,并选择从Release复制,如下所示:

在此处输入图像描述

5) 在项目属性中的 Build 选项卡顶部,现在出现了一个配置选择器。将定义 DEBUG 常量定义 TRACE 常量标记为选中。在高级中,将调试信息none更改为full

如您所见,这确实很痛苦...我发现 Monodevelop 使用起来要容易得多。

1) Click on the menu Tools > Settings and select Expert Settings
2) A new menu called Build has appeared. In it, select Configuration manager
3) In Active solution configuration, click New... as shown below:

enter image description here

4) Type Debug as a name and select to copy from Release, as shown below:

enter image description here

5) In your project's properties, at the top of the Build tab, a configuration selector has now appeared. Mark the Define DEBUG constant and Define TRACE constant as checked. In Advanced, change Debug Info from none to full.

As you see, it is a real pain... I find Monodevelop much easier to use.

过期情话 2024-10-31 07:16:30

看来在我的配置中,所有设置都已在调试打开时正确设置,但我也遇到了这个问题。它可以通过以下步骤修复:

  1. 停止我的本地 IIS
  2. 关闭所有 Visual Studio
  3. 开始调试时从消息中检查目录缓存
  4. 删除此目录
    这条路是:
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\eventsservice\5d285bc1
  5. 再次启动你的 IIS
  6. 重建项目,解决方案
    完毕!

问题可能是因为您的解决方案中的项目具有不同的框架版本。
也检查一下并正确设置。所有相互引用的项目必须使用相同的框架版本。

It seem that in my configuration all have been set correct with debug ON, but I have too this problem. It is fix with this steps:

  1. Stop my local IIS
  2. Close all visual studios
  3. Check directory cache from your message when start to debug
  4. delete this directory
    For was this path:
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\eventsservice\5d285bc1
  5. Start again your IIS
  6. Rebuild projects, solutions
    Done!

The problem may be because in your solution have project with the different framework version.
Check this too and set it correctly. All project that are reference between must use the same framework version.

飞烟轻若梦 2024-10-31 07:16:30

这让我很困惑,在艰难地学习了 Visual Studio(即:只是深入学习)后,我不清楚如何将“活动”构建配置更改为“调试”。这可以通过从构建菜单中选择配置管理器,然后从活动解决方案配置下拉菜单中选择“调试”来完成。

This one caught me out, and having learnt Visual Studio the hard way (ie: just diving in) it wasn't clear how to change the 'Active' build configuration to 'Debug'. This can be done by selecting Configuration Manager from the Build Menu and then selecting 'Debug' from the Active solution configuration pulldown menu.

高冷爸爸 2024-10-31 07:16:30

忽略该消息。

解决方案(对我有用)很简单:

转到“工具”-->“选项 -->调试-->常规

此时,取消选择“仅启用我的代码(仅限托管)”。

再附上流程,开心就好。

Ignore the message.

The solution (that works for me) was simple:

Go to Tools --> Options --> Debugging --> General

At this point, unselect 'Enable Just My Code (Managed Only)'.

Attach the process again, and be happy.

难忘№最初的完美 2024-10-31 07:16:30

仅供参考,当在本地系统帐户下安装该服务时,我可以进行调试,而无需更改任何内容。我需要将帐户更改为网络服务,现在我看到了上述对话框。上面试过了,没有一个成功...

FYI, when having the service being installed under account Local System I could debug without ever needing to change anything. I needed to change the account to Network Service and now I have the mentioned dialog. Tried above, none worked...

注定孤独终老 2024-10-31 07:16:30

我已经解决了在 Visual Studio 2019 调试选项中禁用启用仅我的代码选项的问题
输入图片此处描述

I've resolve with disable Enable Just my code options in visual studio 2019 debugging options
enter image description here

音盲 2024-10-31 07:16:30

简短回答:我没有使用 vs 2008 ,但是使用 vs 2010 sp1 ,我重新打开并且它起作用了(我觉得我很幸运)。

长答案:
我正在使用 vs 2010 sp1 ,并尝试了几件事,我打算从路径错误 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\2c0d3658\caacfa0a 中删除 dll \ assembly \ dl3 \ 53e39126 \ e888ca9f_7252cc01 相反,我关闭了 Visual Studio 和 IIS EXPRESS 我停止了......然后我重新打开了项目,一切都很好。我以为它有 10-25% 的机会自行修复……但它自己修复得很好。

Short answer: I am not using vs 2008 , but with vs 2010 sp1 , I re-opened and it worked (I feel I got lucky).

Long Answer:
I'm using vs 2010 sp1 , and tried several things, I was going to delete the dll from my path error C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\2c0d3658\caacfa0a\assembly\dl3\53e39126\e888ca9f_7252cc01 INSTEAD I SHUTDOWN visual studio and IIS EXPRESS I stopped .... Then I re-opened the project and things were fine. I thought I have a 10-25% chance of it fixing itself... but it fixed itself just fine.

我的奇迹 2024-10-31 07:16:30

就我而言,这个问题是由于VS2012中调试设置不正确引起的。我曾经不小心取消选中“始终加载位于模块旁边的符号”复选框,然后我得到了与您的图片相同的弹出消息框。

复选框位置:工具->选项->调试->符号->指定模块。

一张图片来展示如何解决它,希望它会有所帮助。

我在下面给出了 在这里>>

In my case, this problem was caused by the incorrect setting about debugging in VS2012. I ever carelessly unchecked the checkbox "Always load symbols located next to modules, then I got the same Popup message box like your picture.

the checkbox location: TOOLS->Options->Debugging->Symbols->Specify modules.

I give a picture below to show how to resolve it, hope it will be helpful.

enter image description here

吃不饱 2024-10-31 07:16:30

从 GAC 中清除 dll。重建并重试。
我收到了确切的消息(除了实际的 dll 名称),因此我检查了 dll 的构建位置,并将此路径与“驱动程序”或调用者应用程序中的路径进行比较。然后我从 GAC 中删除了 dll,进行了重建并设置了适当的断点。 VS 不会自动更新 dll 上的版本号,因此它正在寻找与我正在调试的版本不同的版本。

Clear the dll from the GAC. Do a rebuild and try again.
I was getting the exact message (except for the actual dll name ) so I checked where the dll was built to and compared this path to the path in the 'Driver' or Caller app. Then I removed the dll from the GAC did a rebuild and set appropriate breakpoints. VS doesn't automatically update the version number on the dll so it was looking for a different version to the one I was debugging.

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