从Blend 4 RC获取错误MSB4126 [英] Getting error MSB4126 from Blend 4 RC

查看:300
本文介绍了从Blend 4 RC获取错误MSB4126的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经安装了Blend 4 RC和VS 2010 Web Developer Express。我在Blend 4中开始了一个新项目来说Silverlight中的Hello World。


在Blend 4中构建项目我收到以下错误消息:


构建项目:HelloWorldSilverlight4.sln,目标:重建

__________________________________________________

项目"C:\ XYZ 4 \ SL 4 VB \ HelloWorldSilverlight4 \ HelloWorldSilverlight4的.sln" (重建目标):


C:\ XYZ 4 \ SL 4 VB\HelloWorldSilverlight4 \ HelloWorldSilverlight4.sln.metaproj:错误MSB4126 :指定的解决方案配置"Debug | HPD"是无效的。


请使用配置和平台属性指定有效的解决方案配置(例如MSBuild.exe Solution.sln / p:Configuration = Debug / p :Platform =" Any CPU")或将这些属性留空以使用默认解决方案配置。

完成构建项目"HelloWorldSilverlight4.sln" - 失败。

构建失败。


我该如何解决这个问题?


当我在WV Web Developer 2010 Express中打开项目并添加一些代码时,项目正确构建并且也正确运行。


我没有收到任何错误安装新位。我的安装顺序是:


1)VS 2010 Visual Basic Express


2)Web平台安装程序


3)VS 2010 Web Developer Express


4)VSlight的Silverlight 4工具


5)MS Expression Blend 4 RC(安装时混合4 RC我不得不卸载Blend 3 SDK版本1.034.xxx - 我不确定它是哪个版本)


更新:


与此同时,我发现了两条关于MSB4126错误消息与Blend 4 BETA 的链接。但这是西班牙语和我b $ b 安装了Blend 4 RC 。以下是这两个链接:


http://geeks.ms/blogs/riacosta/archive/2010/04/08/error-al-compilar-con-blend-4-beta -debug-cmd-is-invalid.aspx


http://www.eltatuajefalso.com/139/blend-problemas-al-compilar-en-el-september-preview  


 


问候,


Martin

解决方案


我解决了以下问题。


使用regedit.exe导航到注册表路径


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet \Control\Session Manager \ Environment


并选择了关键平台即可。平台的值为
HPD


然后我仅删除了值HPD 。 之后关键平台还在那里,但空虚。我关闭了Regedit,重新启动了我的PC并运行了Blend 4.


我的HelloWorldSilverlight4的构建现在已经成功。


虽然我想知道是否有有关此变通办法的任何已知问题。我在互联网上发现的关于MSB4126的是,如果注册表键"平台",则会发生此错误。在上面提到的注册表路径有任何价值。价值
我猜是来自惠普(Hewlett Packard)。也许它代表 H ewlett
P ackard D evice?我使用的机器是HP Pavilion。我在互联网上发现的是,其他PC制造商也正在为名为Platform的注册表项写一个值。在这些情况下,出现错误MSB4126
。我不知道是否在所有具有注册表密钥平台值的计算机上,但它似乎是一个已知问题。


问候,


Martin


Hi,

I have installed Blend 4 RC and VS 2010 Web Developer Express. I started a new project in Blend 4 to say Hello World from Silverlight.

Building the project in Blend 4 I get the following error message:

Build project: HelloWorldSilverlight4.sln, Targets: Rebuild
__________________________________________________
Project "C:\XYZ 4\SL 4 VB\HelloWorldSilverlight4\HelloWorldSilverlight4.sln" (Rebuild target(s)):

C:\XYZ 4\SL 4 VB\HelloWorldSilverlight4\HelloWorldSilverlight4.sln.metaproj : error MSB4126: The specified solution configuration "Debug|HPD" 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 "HelloWorldSilverlight4.sln" -- FAILED.
Build failed.

How do I solve this?

When I open the project in WV Web Developer 2010 Express and add some code the project is build correctly and it also runs correctly.

I didn't get any error on install the new bits. My install order was:

1) VS 2010 Visual Basic Express

2) Web Platform installer

3) VS 2010 Web Developer Express

4) Silverlight 4 Tools for VS 2010

5) MS Expression Blend 4 RC (during install Blend 4 RC I had to and did uninstall Blend 3 SDK Version 1.034.xxx - I am not sure which version it was)

Update:

Meanwhile I found two links about MSB4126 error message with Blend 4 BETA. But this is spanish and I installed Blend 4 RC. Here are those two links:

http://geeks.ms/blogs/riacosta/archive/2010/04/08/error-al-compilar-con-blend-4-beta-debug-cmd-is-invalid.aspx

http://www.eltatuajefalso.com/139/blend-problemas-al-compilar-en-el-september-preview 

 

Regards,

Martin

解决方案

Hi,

I solved the problem as follows.

Using regedit.exe I navigated to th registry path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

and selected the key Platform. Platform had the value HPD.

Then I deleted only the value HPD. After this the key Platform was still there but empty. I closed Regedit, restarted my PC and run Blend 4.

The build for my HelloWorldSilverlight4 now succeded.

Although I would like to know if there are any known issues concerning this workaround. What I found about MSB4126 on the internet was that this error occurs if the registry key "Platform" at the above mentioned registry path has any value. The value I guess comes from HP (Hewlett Packard). Maybe it stands for Hewlett Packard Device? The machine I use is a HP Pavilion. What I found on the internet mentioned was that also other PC manufacturer are writing a value to a registry key named Platform. And in those cases the error MSB4126 occured. I don't know whether on all machines with a value at registry key Platform but it seems to be a known issue.

Regards,

Martin


这篇关于从Blend 4 RC获取错误MSB4126的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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