simplified build configuration
http://blogs.msdn.com/b/saraford/archive/2005/08/16/452411.aspx
Did you know… That you can hide the solution and advanced build configurations
Under Tools – Options – Projects and Solutions – General, there are options for both Always show solution and Show advanced build configurations.
Both options will affect the menu structure, changing which items appear or are enabled.
The Show advanced build configurations includes the Configuration Manager and the Solution Configurations and Solution Platforms combo boxes on the standard toolbar.
Under most conditions, these options will work; however, there are some exceptions.
- Regardless of setting, the solution will still appear if you open a solution with multiple projects.
- Regardless of setting, Advanced build configurations will appear if you open a project or solution that has mixed platforms or mixed solution and project configurations, like Solution is set to Debug, but Project is set to Release.
Happy Visual Studio’ing!
https://msdn.microsoft.com/zh-cn/library/ff452649(v=vs.110).aspx
When you use the simplified build configuration, Visual Studio determines whether to build a debug or release version. Choosing the simplified build configuration implements the following settings:
-
The Start Debugging command on the Debug menu (F5) creates a debug version, and puts the build in the debug location regardless of the output path you specify.
-
The Build command on the Build menu uses the settings from the appropriate Project Designer pages.The Output path is on the Build page (C#) or Compile page (Visual Basic) of the Project Designer.
-
The Build menu does not contain the Configuration Manager command.
-
The Configuration and Platform drop-down lists do not appear on Project Designer pages.
-
On the toolbar, the Solution Configurations and Solution Platforms drop-down lists are not available.
特别需要注意的是第一点和第二点:
调试就是Debug的版本,生成就是Release的版本
1.调试菜单中的开始调试命令,会自动创建一个Debug版本的程序,并且将调试版本的程序输出到默认的Debug路径(不管你在项目属性中设置的输出路径是什么)
可以在bin\Debug\目录下找到生成的Debug版本的程序
2.生成菜单上的生成命令,会使用项目属性中的配置来生成程序,并且输出路径是项目属性中指定的
已启动全部重新生成: 项目: WindowsFormsApplication2, 配置: Release Any CPU
不管你在项目属性中设置的是什么,提示都是Release Any CPU
即便你使用的是Debug的属性配置,并且目标平台是x86
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了