Visual Studio 2008的项目属性生成配置丢失选项 [英] Visual Studio 2008 Project Properties Build Configuration Missing Options

查看:415
本文介绍了Visual Studio 2008的项目属性生成配置丢失选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,并希望有人能帮助我。

I have a strange problem, and hopefully someone can help me.

我有13个独立的C#项目的解决方案。我使用Vista x64的开发上,我想建立这些项目针对x86平台。这通常是很容易的。我可以去解决方案属性 - >配置属性,改变该平台的x86。奇怪的部份这里是3我的项目拒绝让我选择86。

I have a solution with 13 separate C# projects. I am using Vista x64 to develop on, and I would like to build these projects to target the x86 platform. This is normally quite easy. I can go to solution properties -> Configuration properties and change the platform to x86. The strange part here is that 3 of my projects refuse to allow me to select x86.

所以,我想我会去每种3个项目分别在项目属性 - 更改>生成并修改平台。而配置和平台的下拉列表中不存在这些项目。我用Google搜索了一下周围,发现在工具 - >选项 - >项目和解决方案 - >设置显示高级生成配置。选择此之后,将项目属性为违规项目的时候,我现在看到两个下拉菜单,但平台只允许我请选择活动(任何CPU)。

So, I thought I'd go to each of these 3 projects separately and change it in Project Properties->Build and change the Platform. And the Configuration and Platform dropdowns are not there for these projects. I googled around a bit, and found a setting in Tools->Options->Projects And Solutions->Show Advanced build configuration. After selecting this, when going to Project Properties for the offending projects, I now see both dropdowns, but the platform only lets me select Active (Any CPU).

我也不会改变平台的解决方案性能的x86这些项目。

I can also not change the Platform in Solution properties to x86 for these projects.

任何想法?

推荐答案

听起来就像是生成配置已经扭曲。大概被加入后的溶液被配置为具有支持x86(新项目只支持值为anycpu,即使该解决方案支持更多平台上)的三个项目

Sounds like the Build Configurations have gone screwy. The three projects were probably added after the solution was configured to have x86 support (New projects only support AnyCPU, even if the solution supports more platforms.)

  • 进入建设 - >配置管理器...
  • 更改活动解决方案平台为86(如果它的存在。如果只有值为anycpu是存在的,那么使用它。)
  • 对于每个有问题的项目,在平台列中,选择新建
  • 选择新平台为86,从复制设置任何CPU,并确保该复选框没有打勾。
  • 点击确定。

获取解决方案和个别项目之间一致的配置/平台可能会非常棘手。配置管理器的行为可能 - 尤其是自定义解决方案的配置。我建议打在测试解决方案第一。

Getting configuration/platforms consistent between the solution and individual projects can be tricky. The Configuration Manager can behave unexpectedly - especially with custom solution configurations. I suggest playing in a test solution first.

这篇关于Visual Studio 2008的项目属性生成配置丢失选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆