续之三,本文是idesign c#编程规范的第三章。
3 项目设置与项目结构 【相关文章:对php中数据库永久连接的一点理解】
【扩展阅读:从MP3中提取歌曲信息】
project settings and project structure 【扩展信息:从Coding Fan到真正的技术专家】 1. 总是以4级警告建立项目(图略)。 always build your project with warning level 4 2. 在发布版中将警告作为错误(注意这不是vs.net的缺省设置)(图略)。 treat warning as errors in release build (note that this is not the default of vs.net). a) 虽然是可选的,本标准也推荐在调试版中将警告作为错误。 although it is optional, this standard recommend treating warnings as errors in debug builds as well. 3. 永远不要抑制特定的编译警告(图略)。 never suppress specific compiler warnings. 4. 总是在应用程序的配置文件中显式地说明支持的运行时版本。参见programming .net components第五章。 always explicitly state your supported runtime versions in the application configuration file. see chapter 5 in programming .net components. <?xml version="1.0"?> <configuration> <startup> <supportedruntime version="v2.0.0.0"/> <supportedruntime version="v1.1.5000.0"/> </startup> ... 下一页