2010-01-06 125 views
0

我已经下载了myTODO Azure示例应用程序,当试图在本地运行它时,我收到以下非常令人费解的错误消息。Visual Studio 2010 Beta 2 myTODO错误消息

The item "..\MyTodo.WebUx\MyTodo.WebUx.csproj" in item list 
"ProjectReferenceWithConfiguration" does not define a value for metadata "Configuration". 
In order to use this metadata, either qualify it by specifying %(ProjectReferenceWithConfiguration.Configuration), 
or ensure that all items in this list define a value for this metadata. 
C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\1.0\Visual Studio 10.0\Microsoft.CloudService.targets 

下面是MyToDo.WebUX.csproj文件的摘录,我该怎么改变?

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
<PropertyGroup> 
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
<ProductVersion>9.0.30729</ProductVersion> 

回答

1

为了让Web项目转换,请从要素如下: “{603c0e0b-db56-11dc-be95-000d561079b0};”

尽管这个示例已经过时,但您可以使用它来查看测试项目,但为了获得该项目代码的大部分更新的vs2008版本,请尝试将源代码下载到此实验室:DeployingApplicationsinWindowsAzure

来源链接位于右上角。如果您查看3练习的结束文件夹,您会发现该项目的更新版本......但是我不认为完整的解决方案在那里,因此您必须将其与您链接的相比较以上。

...我没有比较过自己的项目,所以我不知道实验室版本和代码库之间缺少什么。

+0

谢谢,项目现在转换但收到AppDomainUnloadedException。 – 2010-01-09 21:39:06

4

我有一个问题,今天的MSBuild的是给我一个几乎相同的错误:

The item "xxx.csproj" in item list "ProjectReferenceWithConfiguration" does not define a value for metadata "Name". 

幸运的是,我有正确编译另一个Azure的服务,让我能够搜索出的差异。事实证明,在正在工作的解决方案中,MyService.ccproj(Azure服务项目)在编译之前xxx.csproj。在失败的解决方案中,首先编译xxx.csproj。当我指定xxx.csprojMyService.ccproj之后编译的依赖项时,它开始工作。

我不确定这里发生了什么,或者它是关于xxx.csproj,这使得它必须得到。如果我知道,我会更新,但也许这会帮助你。

更新:看起来也许Azure不喜欢它,如果您指定除Azure角色项目以外的任何项作为服务项目的依赖项。我做到了这一点,MyWebRole.csproj依赖于xxx.csproj,而不是MyService.ccproj依赖于xxx.csproj,它的工作。