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

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - Meyer

NPOI中嵌入图片 SQL Server不能通过条件控制生成同名的存储过程 我的2004 SQL中一个不明的错误 String TechEd流水帐 行医要厚道 Tech ed 2004 sh Asp.net程序的身份 delphi与asp.net - Meyer - 博客园 闲话一 ActiveX CRView 与Asp.net 在水晶报表中显示条形码 Crystal Report&Barcode Crystal Report 新工作 这是.Text 的trackback功能吗? about zhanbos' quiz GMail I Get
被C#2005 Express 撞了一下腰
Meyer · 2004-07-26 · via 博客园 - Meyer

今天总算逮着一个时间,把VS 2005 Express装上了。急匆匆上马,写个最简单的hello。

懒得手动编译了,直接F5运行,出错!!!
编译看看出了什么问题:
 Error 1  The type or namespace name 'WriteLine' does not exist in the namespace 'Console' (are you missing an assembly reference?) C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\Console\Program.cs 15 20   
晕,怎么回事?改成
System.Console.WriteLine("Hello");
才勉强通过。

是bug还是C#2.0做了什么改动?或则我这出了什么问题?

modify:

JohnnyHu 的提醒下,我发现自己的心是这样的粗。
将namespace修正,namespace HelloWorld还是不能通过编译。后来发现是因为我的工程的根namespace是Console的原因,不过这个现象我认为不应该出现,因为我的所有代码都没有使用Console着个namespace,也就是说最后生成的Assemble里边不会有Console这个namespace,这种情况下报错有点不应该。
明天到2003下看看。

补充:
2003中设置default namespace为Console不会影响编译
在CS2005Express中设置Root namespace为Console会影响到编译