2010-01-06 87 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,它的工作。