本文介绍了从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

解决方案

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 Iinstalled 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

解决方案


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

10-31 07:24