在 Expression Blend 4 上运行项目时出错
每当我尝试在 Expression Blend 4 上运行项目时,总会出现错误。
指定的解决方案配置“Debug|MCD”无效。请使用“配置”和“平台”属性指定有效的解决方案配置(例如 MSBuild.exe Solution.sln /p Configuration=Debug / p:Platform="Any CPU" 或保留这些属性空白以使用默认解决方案配置)
在一些论坛中,我读到通过删除注册表上的某些内容可以解决此问题,但我想知道这样做是否安全,或者是否有其他方法可以解决此错误。
Whenever I try to run a project on Expression Blend 4 an error always appear.
The specified solution configuration "Debug|MCD" 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 )
In some forums I've read that by deleting something on the registry will solve this issue but what I want to know is if it's safe to do that or if there are other ways to solve this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,HP机器出厂时就为其自己的更新软件设置了多个全局变量,包括“PCBRAND”等内容。您猜对了,这些变量之一就是平台。
在 VS 2010 RC 中,构建环境开始将“平台”视为编译时系统变量。因此,由于您的部署配置中不存在这样的平台,因此它会失败。
这是一个非常简单的修复,只需删除 PLATFORM 变量即可。
您需要执行以下步骤:
希望我能为您节省一些时间。
It turns out that HP machines from the factory come with several global variables set for it’s own update software, including things such as “PCBRAND”. One of those variables are, you guessed it, PLATFORM.
In VS 2010 RC the build environment started respecting “Platform” as a compile time System variable. Therefore, because no such platform exists in your deployment configuration, it fails.
It’s a pretty simple fix, just delete the PLATFORM variable.
You need to do the following steps:
Here’s hoping I saved you some time.
如果您的意思是:
http://social .expression.microsoft.com/Forums/en/blend/thread/f664d317-2415-4369-b461-a22eb0a2f023
&
http://social.expression.microsoft.com/Forums/en-US/blend/thread/71496590-a9ec-4e3a-8353-3ced345f78dc/#18af3654-2ee7-4e61-a1e1-321d430026eb
那么是的。这与惠普以及他们在机器上打包额外应用程序的方式有关。我发现 MCD 平台密钥位于注册表中的几个位置,我删除了它们,然后重新启动,现在 Blend 构建得很好。
If you mean:
http://social.expression.microsoft.com/Forums/en/blend/thread/f664d317-2415-4369-b461-a22eb0a2f023
&
http://social.expression.microsoft.com/Forums/en-US/blend/thread/71496590-a9ec-4e3a-8353-3ced345f78dc/#18af3654-2ee7-4e61-a1e1-321d430026eb
Then yes. It's to do with HP and the way they package up the extra applications on the machine. I found that the MCD platform key was in the registry in a few places, I deleted them and then restarted and now blend builds great.