指定的解决方案配置"Debug | BNB"被指定为"Debug | BNB".是无效的 [英] The specified solution configuration "Debug|BNB" is invalid

查看:112
本文介绍了指定的解决方案配置"Debug | BNB"被指定为"Debug | BNB".是无效的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Expression Blend 4中,编译时出现错误消息

In Expression Blend 4, while compiling I get an error saying

指定的解决方案配置"Debug | BNB"无效.请使用配置"和平台"属性指定有效的解决方案配置(例如MSBuild.exe Solution.sln/p:Configuration = Debug/p:Platform ="Any CPU"),或将这些属性留空以使用默认解决方案配置.
完成的建筑项目"myproject.sln"-失败.
构建失败.

The specified solution configuration "Debug|BNB" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
Done building project "myproject.sln" — FAILED.
Build failed.

推荐答案

背景:在构建时,编译器(无论是从Expression Blend还是Visual Studio启动)都必须知道目标是什么您代码的平台,即X86、64位等系统架构.

Background: At build-time the compiler (no matter if started from Expression Blend or Visual Studio) has to know what the target platform of your code, i.e. the system architecture like X86, 64bit etc.

问题现在的问题是,系统范围的环境变量平台"设置似乎也覆盖了Expression Blend用作目标平台的任何设置.

The problem now is, that a system wide setting of an environment variable called "Platform" seems to override any setting of what Expression Blend uses as target platform, too.

我在其他网站上找到了一些解决方法,并将在此处提供可能的解决方案.尝试以下两个建议中的一个 应该会有所帮助:

I found some workarounds on other websites and will provide the possible solutions here. Trying one of the two suggestions should help:

  • 在控制面板-系统-高级-环境变量"中删除冲突的环境变量平台".重新启动Blend并尝试一下(也许您必须重新启动计算机才能使其正常工作).
  • 如果这没有帮助:使用注册表编辑器(开始-运行-"Regedit.exe"),转到项HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Environment,然后选择项Platform.删除值BNB.如果找不到指定的键,请尝试用"ControlSet001"替换"CurrentControlSet",这在某些情况下也适用.然后重新启动计算机.

请评论哪种解决方案有效.

Please give a comment which of the solutions worked.

这篇关于指定的解决方案配置"Debug | BNB"被指定为"Debug | BNB".是无效的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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