惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - Feelwindy1

博文阅读密码验证 - 博客园 Windows Live Messenger Beta的邀请 浅谈存储过程与函数的区 Ajax程序设计入门 [转] NHibernate(转) 与女友的相处之道(转) 两点连接寻径算法 软件架构与设计模式 Enterprise JavaBeans导论[转] 设计模式:MVC模式 (java) 构架师之路 ADO.NET事务和Set Xact_Abort 以及MSDTC Eclipse基础--使用links方式安装Eclipse插件 分布式数据库事务 Winform在设计上的一个小Bug 连连看源码调试问题 连连看精简测试版源码 阻塞和死锁 响应号召,发布连连看(C#+MDX9 精简测试版)
debug与release - Feelwindy1 - 博客园
Feelwindy1 · 2005-06-11 · via 博客园 - Feelwindy1

关于 ASP.NET 应用程序 WEB.CONFIG 中 compilation/@debug 设置
<compilation defaultLanguage="c#" debug="false"/>

和我们 VS.NET IDE 中项目的 build---> debug/release 设置之间的区别,是这样的:

通常来说对于一个.net assembly 我们在编译的时候需要指定 debug或者release 版本,这样生成的assembly中会相应包含或者不包含调试的symbol以及调试数据库信息。 而对于 ASP.NET, 项目中的 BUILD---> DEBUG/RELEASE 设置也是这样的,它确定的是我们最后生成的项目的主 assembly的版本信息(最后要放在应用程序 bin目录中的)。

然而, asp.net 中,最终执行页面/ascx 控件都是动态编译(在临时文件夹中生成动态的临时
assembly)的,所以我们需要为这些动态编译的组件也制定相应的版本信息,这也就是我们需要再 web.config 中提供
<compilation defaultLanguage="c#" debug="false"/>

的目的。 同时 这个设置要控制了asp.net 应用程序是否可以直接 F5 调试,以及动态编译的 ASSEMBLY 是否是每个页面单独编译成一个  ASSEMBLY 还是多个页面编译在一个 assembly 中。

主要就是这些区别