MSBuild WP8.1项目时,目标_GetRecursiveResolvedSDKReferences不存在

时间:2014-12-01 10:26:56

标签: visual-studio-2012 msbuild windows-phone-8.1

我尝试使用命令行构建Windows Phone 8.1应用程序。

我使用Visual Studio 2013 Pro创建了一个解决方案和一个项目WP8.1(File> New> Project ...)。然后我尝试使用以下命令行构建这个新创建的项目:

msbuild App1.csproj

它因此错误而失败:

"C:\...\App1\App1.csproj" 
(cible par défaut) (1) ->
  C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.1\Microsoft.WindowsPhone.PostImport.targets(28,13): error MSB4057: La cible "_GetRecursiveResolvedSDKReferences" n'existe pas dans le projet. [C:\...\App1\App1.csproj]

使用的MSBuild.exe是这样的:C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ MSBuild.exe

这里是构建的完整日志:

C:\...\App1>msbuild App1.csproj
Microsoft (R) Build Engine, version 4.0.30319.36242
[Microsoft .NET Framework, Version 4.0.30319.0]
Copyright (C) Microsoft Corporation. Tous droits réservés.

La génération a démarré 01/12/2014 11:11:20.
Projet "C:\...\App1\App1.csproj" sur le noud 1 (cibles par défaut).
CoreResGen:
  "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\resgen.exe" /useSourcePath 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.CSharp.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Devices.Sensors.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Interop.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Maps.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Media.ElementaryStreams.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Reactive.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.GamerServices.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.GamerServicesExtensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.Input.Touch.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.MediaLibraryExtensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\mscorlib.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\mscorlib.extensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Collections.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ComponentModel.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ComponentModel.EventBasedAsync.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Core.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Data.Linq.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Device.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Contracts.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Debug.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Tools.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Dynamic.Runtime.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Globalization.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.IO.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.Expressions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.Queryable.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.NetworkInformation.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.Primitives.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.Requests.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ObjectModel.dll"
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Observable.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Emit.IlGeneration.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Emit.Lightweight.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Extensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Primitives.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Resources.ResourceManager.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Extensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.InteropServices.WindowsRuntime.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Json.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Primitives.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Xml.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.WindowsRuntime.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Security.Principal.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Http.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Primitives.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Security.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Web.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.Encoding.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.Encoding.Extensions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.RegularExpressions.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Threading.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Threading.Tasks.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Windows.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.Linq.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.ReaderWriter.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.Serialization.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.XDocument.dll" 
/r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.XmlSerializer.dll" 
/r:"C:\Program Files (x86)\Windows Phone Silverlight Kits\8.1\\Windows Metadata\Windows.winmd" 
/compile Resources\AppResources.resx,obj\Debug\App1.Resources.AppResources.resources
Traitement du fichier de ressources "Resources\AppResources.resx" dans "obj\Debug\App1.Resources.AppResources.resources".

GenerateTargetFrameworkMonikerAttribute:
La cible est ignorée "GenerateTargetFrameworkMonikerAttribute", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
CoreCompile:
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.CSharp.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Devices.Sensors.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Interop.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Maps.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Media.ElementaryStreams.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Phone.Reactive.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.GamerServices.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.GamerServicesExtensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.Input.Touch.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\Microsoft.Xna.Framework.MediaLibraryExtensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\mscorlib.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\mscorlib.extensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Collections.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ComponentModel.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ComponentModel.EventBasedAsync.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Core.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Data.Linq.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Device.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Contracts.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Debug.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Diagnostics.Tools.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Dynamic.Runtime.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Globalization.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.IO.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.Expressions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Linq.Queryable.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.NetworkInformation.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.Primitives.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Net.Requests.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ObjectModel.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Observable.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Emit.IlGeneration.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Emit.Lightweight.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Extensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Reflection.Primitives.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Resources.ResourceManager.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Extensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.InteropServices.WindowsRuntime.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Json.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Primitives.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.Serialization.Xml.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Runtime.WindowsRuntime.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Security.Principal.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Http.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Primitives.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Security.dll"
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.ServiceModel.Web.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.Encoding.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.Encoding.Extensions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Text.RegularExpressions.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Threading.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Threading.Tasks.dll" 
/reference:"C:\Program Files(x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Windows.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.Linq.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.ReaderWriter.dll" 
/reference:"C:\Program Files(x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.Serialization.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.XDocument.dll" 
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\System.Xml.XmlSerializer.dll" 
/reference:"C:\Program Files (x86)\Windows Phone Silverlight Kits\8.1\\Windows Metadata\Windows.winmd" 
/debug+ /debug:full /optimize- /out:obj\Debug\App1.dll 
/resource:obj\Debug\App1.g.resources 
/resource:obj\Debug\App1.Resources.AppResources.resources 
/target:library 
/utf8output App.xaml.cs LocalizedStrings.cs MainPage.xaml.cs Properties\AssemblyInfo.cs Resources\AppResources.Designer.cs "C:\...\App1\obj\Debug\App.g.cs" "C:\...\App1\obj\Debug\MainPage.g.cs" "C:\...\AppData\Local\Temp\WindowsPhone,Version=v8.1.AssemblyAttributes.cs"

_CopyOutOfDateSourceItemsToOutputDirectory:
  Copie du fichier de "C:\...\App1\Assets\ApplicationIcon.png" vers "Bin\Debug\Assets\ApplicationIcon.png".
  Copie du fichier de "C:\...\App1\Assets\Tiles\FlipCycleTileLarge.png" vers "Bin\Debug\Assets\Tiles\FlipCycleTileLarge.png".
  Copie du fichier de "C:\...\App1\Assets\Tiles\FlipCycleTileMedium.png" vers "Bin\Debug\Assets\Tiles\FlipCycleTileMedium.png".
  Copie du fichier de "C:\...\App1\Assets\Tiles\FlipCycleTileSmall.png" vers "Bin\Debug\Assets\Tiles\FlipCycleTileSmall.png".
  Copie du fichier de "C:\...\App1\Assets\Tiles\IconicTileMediumLarge.png" vers "Bin\Debug\Assets\Tiles\IconicTileMediumLarge.png".
  Copie du fichier de "C:\...\App1\Assets\Tiles\IconicTileSmall.png" vers "Bin\Debug\Assets\Tiles\IconicTileSmall.png".

CopyFilesToOutputDirectory:
  Copie du fichier de "obj\Debug\App1.dll" vers "Bin\Debug\App1.dll".
  App1 -> C:\...\App1\Bi
  n\Debug\App1.dll
  Copie du fichier de "obj\Debug\App1.pdb" vers "Bin\Debug\App1.pdb".

C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.1\Microsoft.WindowsPhone.PostImport.targets(28,13): error MSB4057: La cible "_GetRecursiveResolvedSDKReferences" n'existe pas dans le projet. [C:\...\App1\App1.csproj]

Génération du projet "C:\...\App1\App1.csproj" terminée (cibles par défaut) -- ÉCHEC.


ÉCHEC de la build.

"C:\...\App1\App1.csproj
" (cible par défaut) (1) ->
  C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.1\Microsoft.WindowsPhone.PostImport.targets(28,13): error MSB4057: La cible "_GetRecursiveResolvedSDKReferences" n'existe pas dans le projet. [C:\...\App1\App1.csproj]

    0 Avertissement(s)
    1 Erreur(s)

Temps écoulé 00:00:02.10

您知道如何解决这个问题吗?

感谢。

4 个答案:

答案 0 :(得分:0)

今天我遇到了与升级到WP81的WP8解决方案相同的问题。升级的解决方案在针对WP81 SDK的VS2013中构建正常,但在TFS CI构建中以及在我的开发PC上运行的命令提示符中使用MSBUILD时失败

似乎有效的修复方法是将以下目标添加到失败的.csproj文件中

我把它放在文件末尾,就在结束

之前

答案 1 :(得分:0)

问题解决了,在VS2013和WP8.1项目中,你不能直接使用msbuild,你需要初始化一些vars。所有这些工作都可以在VS2013文件夹中使用现有批处理:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat

执行此批处理后,只需执行一个简单的msbuild youProjectFile.csproj即可修复。

call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
msbuild App1.csproj

答案 2 :(得分:0)

问题是C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319的版本您正在使用C:\Program Files (x86)\MSBuild\12.0\bin 中的旧版本。此目录中提供了最新版本:

files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_restart_que.sh":
mode: "000755"
owner: root
group: root
content: |
  #!/usr/bin/env bash
  set -xe
  # Loading environment data
  EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir)
  EB_SUPPORT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support_dir)
  EB_APP_USER=$(/opt/elasticbeanstalk/bin/get-config container -k app_user)
  EB_APP_CURRENT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir)

  . $EB_SUPPORT_DIR/envvars
  . $EB_SCRIPT_DIR/use-app-ruby.sh

  cd $EB_APP_CURRENT_DIR

  su -s /bin/bash -c "pkill -f que:work" $EB_APP_USER

  echo 'REAPED que:work processes.'

  su -s /bin/bash -c "bundle exec rake que:work" $EB_APP_USER

答案 3 :(得分:0)

我之前的回答没有包含代码,我认为这就是我要包含的内容

  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LiveWindows|AnyCPU'">
    <OutputPath>bin\LiveWindows\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;LIVE</DefineConstants>
    <Optimize>true</Optimize>
    <NoStdLib>true</NoStdLib>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LiveWindows|ARM'">
    <OutputPath>bin\ARM\LiveWindows\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;LIVE</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <NoStdLib>true</NoStdLib>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LiveWindows|x64'">
    <OutputPath>bin\x64\LiveWindows\</OutputPath>
    <DefineConstants>CODE_ANALYSIS;CODE_ANALYSIS;TRACE;NETFX_CORE;LIVE</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <NoStdLib>true</NoStdLib>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <RunCodeAnalysis>true</RunCodeAnalysis>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LiveWindows|x86'">
    <OutputPath>bin\x86\LiveWindows\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;LIVE</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <NoStdLib>true</NoStdLib>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>