如何在VS 2005中修改解决方案宏?
在我的解决方案(Visual Studio 2005)中,有超过10个VC项目。我的操作系统是Windows 64。
在.vcproj
中,有很多解决方案/项目宏,例如$(Solution)
、$(ConfigurationName)
和$(平台名称)
。
如您所知,$(PlatformName)
等于 x64
,但我期望的是 $(PlatformName)
等于 win64< /代码>。如何实现这一目标?
有些人告诉我要这样做:
“构建”--> “配置管理器”--> “主动解决方案平台”
,然后新建/编辑选项。修改后,Active Solution Platform
下存在win64
,但仍出现如下所示的Platform
x64
。
这让我困惑了好几天。请帮忙。
In my solution (Visual Studio 2005), there are more than 10 VC projects. My OS is Windows 64.
In the .vcproj
, there are many solution/project macros, like $(Solution)
, $(ConfigurationName)
and $(PlatformName)
.
As you know, $(PlatformName)
equals to x64
, but what I expect is that $(PlatformName)
equals to win64
. How to achieve this?
Some people tell me to do as follows:
"Build" --> "Configuration Manager" --> "Active solution platform"
and then new/edit the option. After modifying, win64
exists under Active solution platform
, but still the Platform
shown as follows appears x64
.
It has puzzled me for some days. Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
$(PlatformName) 指的是项目选择的构建平台,而不是解决方案平台。与您可以随意命名的解决方案平台不同,项目平台具有固定名称,例如 Win32、x64、Itanium 等。不幸的是您无法自由命名这些名称。
$(PlatformName) refers to the project selected build platform, not the solution platform. Unlike the solution platform which you may name as you like, the project platforms have fixed names such as Win32, x64, Itanium etc. You unfortunately cannot name these freestyle.