帮助运行C#项目 [英] Help Running a C# Project

查看:71
本文介绍了帮助运行C#项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在运行C#项目时遇到问题,每次运行它时,都会收到以下错误消息:

以下模块是在启用优化或没有调试信息的情况下构建的:
C:\ David \ flash \ support \ UserSupport \ bin \ Debug \ Support.Dll
要调试此模块,请将其项目构建配置更改为调试"模式.要取消显示此消息,请禁用警告是否在启动时没有用户代码"调试器选项.


请某人帮我做我能做的事,这是我的新事物!

您的帮助将不胜感激.

David.

Hi All,

I''m having problems running my C# project, each time i run it i get this error message:

The following Module was built either with Optimization enabled or without Debug Information:
C:\David\flash\support\UserSupport\bin\Debug\Support.Dll
To Debug this Module, Change it''s project build configuration to Debug mode. To suppress this message, Disable ''Warn if no user code on launch'' debugger option.


pls someone should help me with what i can do, i''m kind of new in this!

Your help will be appreciated.

David.

推荐答案

在工具栏上,可能就在菜单栏的下面,有一个下拉菜单,如果将鼠标悬停在该菜单上,将显示工具提示解决方案配置" -将其下拉,然后选择调试"而不是发布".
除非您在属性中做了很多不应该更改的操作,否则应该切换回内置调试信息.
On the tool bar, probably just below the menu bar, there is a dropdown which if you hover the mouse over will show a tooltip "Solution Configurations" - drop it down and select "Debug" rather than "Release".
Unless you have changed lots of things in the properties that you probably shouldn''t, that should switch you back to having debug information built in.


您是否已经阅读了该消息?它已经告诉您该怎么做.将设置重新设置为调试"或禁用优化,否则调试将无法正常进行.
Have you read the message at all? It already tells you what to do. Set the setting back to ''Debug'' or disable the optimizations, otherwise debugging will not work properly.


那么,如何切换调试和优化?
您是否在使用Visual Studio?

如果您使用Visual Studio,则涉及以下内容:

[项目属性] => 构建"标签=> (定义DEBUG constand",定义TRACE常数",优化代码")
[项目属性] => 调试"标签=>请参阅启用调试器和3个复选框.

如果您使用的是原始C#编译器"CSC.EXE",请查看它的选项:"/debug [+ |-]","/debug:{full | pdbonly}","/optimize [+ |-]","/定义:< symbol list =">.

就这样.

—SA
So, how to switch debugging and optimization?

Are you using Visual Studio or not?

If you use Visual Studio, here is what involved:

[Project Properties] => "Build" tab => ("Define DEBUG constand", "Define TRACE constant", "Optimize code")
[Project Properties] => "Debug" tab => see "Enable Debuggers and 3 check boxes.

If you are using raw C# compiler "CSC.EXE", see it options: "/debug[+|-]", "/debug:{full|pdbonly}", "/optimize[+|-]", "/define:<symbol list="">".

That''s it.

—SA


这篇关于帮助运行C#项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆