[英]Application settings in visual studio 2008 express edition, winforms
In the application settings screen for the express edition, the Configuration combo box is disabled, so I can't change things like the assembly name and description depending on the configuration. 在Express Edition的“应用程序设置”屏幕中,“配置”组合框处于禁用状态,因此我无法根据配置更改程序集名称和说明之类的内容。
The first question is, is this box enabled in the full version? 第一个问题是,此框是否在完整版本中启用?
Secondly, to get around this, I edited the AssemblyInfo file manually and used preprocessor directives to change the assembly description depending on the configuration. 其次,为了解决此问题,我手动编辑了AssemblyInfo文件,并使用预处理程序指令根据配置更改了程序集描述。
This works, and each configuration compiles correctly. 这可以工作,并且每个配置都可以正确编译。 If I then right click each dll, I can see that the description is different for each one.
如果我然后右键单击每个dll,则可以看到每个描述都不相同。
My question is, is it ok to do this or might I run into problems at some point? 我的问题是,这样做是否可以,或者我可能会在某个时候遇到问题?
It is OK to do this, but the Properties UI does not support it. 可以这样做,但是“属性” UI不支持它。 (Even in higher versions)
(甚至在更高版本中)
IMHO, this is OK. 恕我直言,这没关系。 Even if you change these settings using application dialog, they are also written into the assembly.cs as you did manually.
即使使用应用程序对话框更改了这些设置,它们也将像您手动进行的那样写入到assembly.cs中。
I personally prefer to do it manually. 我个人更喜欢手动进行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.