使用Windows 8.1 app studio获取错误消息“编译源代码时出错。” [英] getting error message using Windows 8.1 app studio "There was an error compiling the source code."

查看:161
本文介绍了使用Windows 8.1 app studio获取错误消息“编译源代码时出错。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我去了我的应用程序包并得到了这个 


警告和错误



有一个编译源代码时出错。

编译源代码时出错。


我的Installable Package和发布包。


我还为已经在windows商店发布的应用程序生成了一个软件包,只是为了看看我是否得到了相同的错误。


我使用的是Windows 8.1但我使用的是Windows 10家庭版(免费升级),当我发布我的其他应用程序并没有收到此错误。


这里是可安装包的ARM日志文件




C:\ AppStudio \ _1965806.dpesrq-2 \src-publish_ARM> call" D:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\Tools \ VSMSBuildCmd.bat" 



C:\ AppStudio \ _1965806.dpesrq-2 \src-publish_ARM> c:\ nnget3 \\\
uget .exe restore -OutputDirectory c:\ packages&nb sp;
$
MSBuild自动检测:使用来自'D:\Program Files(x86)\ MSBuild\14.0\bin'的msbuild版本'14 .0'。



C:\ AppStudio \ 1965806.dpesrq-2 \src-publish_ARM> IF" true" ==" true" (SET _PACKAGE_BUILD_MODE =; UapAppxPackageBuildMode = StoreUpload)  ELSE(SET _PACKAGE_BUILD_MODE =; UapAppxPackageBuildMode = SideloadOnly) 



C:\ AppStudio \ 1965806.dpesrq- 2\src-publish_ARM> ECHO; UapAppxPackageBuildMode = StoreUpload 

; UapAppxPackageBuildMode = StoreUpload



C:\ AppStudio \ 1965806。 dpesrq-2 \src-publish_ARM> msbuild" C:\ AppStudio \ _1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.sln" /吨:重建/ P:配置=推出;平台= ARM; AppxPackageSigningEnabled = FALSE; NuGetPackagesDirectory = C:\packages; AppxBundle =从不; UapAppxPackageBuildMode = StoreUpload 

微软(R)构建引擎版本14.0.25123.0

版权所有(C)Microsoft Corporation。保留所有权利。



一次一个地构建此解决方案中的项目。要启用并行构建,请添加"/ m"。开关。

Build 2016年12月14日下午10:27:35。

项目"C:\ AppStudio \1965806.dpesrq-2 \ src -publish_ARM\GuideToCompleteYoga.sln"在节点1上(重建目标)。

ValidateSolutionConfiguration:

 构建解决方案配置"Release | ARM"。

目标"_GetPackagingOutputs"在"D:\Program Files(x86)\ MSBuild \ Microsoft \ WindowsXaml \v14.0 \8.2 \ Microsoft.Windows.UI.Xaml.Common.targets"中的AfterTargets属性中列出(707, 11)"在项目中不存在,并将被忽略。

项目"C:\ AppStudio \ 1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.sln" (1)正在构建"C:\ AppStudio \ 1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.W10 \GuideToCompleteYoga.W10.csproj"" (2)在节点1上(重建目标)。

CoreClean:

 创建目录"obj\ARM\Release\"。

PrepareForBuild:

 创建目录" bin\ARM\Release\"。$
GetInstalledSDKLocations:

 正在搜索定位"UAP,10.0.10586.0"的SDK.

 正在搜索定位"Windows,8.1"的SDK。

ResolveSDKReferences:

   读取SDK清单文件"D:\Program Files(x86)\ Microsrosoft SDKs \ Windows's Kits \10\ExtensionSDKs \ Microsoft.AdMediator.Universal\1.0\SDKManifest.xml"。
   目标配置和架构"零售|支持"

    SDK清单中未找到FrameworkIdentity属性,将此SDK视为非框架SDK。

   否"APPX"在SDK清单中找到指示应用程序包位置的属性。如果在运行时需要应用程序包,项目可能无法运行。

   读取SDK清单文件"D:\Program Files(x86)\ MicroSoft SDKs \ Windows Wits\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
   目标配置和架构"零售|支持"

   找不到"FrameworkIdentity"属性"FrameworkIdentity-Retail-arm"在SDK清单中。 

   找不到"FrameworkIdentity"属性"FrameworkIdentity-Retail"在SDK清单中。 

   找到"FrameworkIdentity"属性"Name = Microsoft.Advertising.Xaml,MinVersion = 10.0.1510.0,Publisher ='CN = Microsoft Corporation,O = Microsoft Corporation,L = Redmond,S = Washington,C = US'"在SDK清单中。

   找到"APPX" location属性"AppX-x86 =。\ AppX \ x86 \ Microsoft.Advertising.Xaml.x86.10.0.appx"在SDK清单中。

   找到"APPX" location属性"AppX-x64 = .\AppX \ x64 \ Microsoft.Advertising.Xaml.x64.10.0.appx"在SDK清单中。

   找到"APPX" location属性"AppX-ARM = .\AppX\ARM\Microsoft.Advertising.Xaml.ARM.10.0.appx"在SDK清单中。

   读取SDK清单文件"D:\Program Files(x86)\ Mysoftoft SDKs \ Windows Wits\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $ b   目标配置和架构"零售|支持"

   找不到"FrameworkIdentity"属性"FrameworkIdentity-Retail-arm"在SDK清单中。 

   找到"FrameworkIdentity"属性" Name = Microsoft.VCLibs.140.00,MinVersion = 14.0.23816.0,Publisher ='CN = Microsoft Corporation,O = Microsoft Corporation,L = Redmond,S = Washington,C = US'"在SDK清单中。

   找到"APPX" location属性" AppX-Retail-x86 = .\AppX \ Retail \ x86 \ Microsoft.VCLibs.x86.14.00.appx"在SDK清单中。

   找到"APPX" location属性"AppX-Retail-x64 = .\AppX\Retail\x64\Microsoft.VCLibs.x64.14.00.appx"在SDK清单中。

   找到"APPX" location属性" AppX-Retail-ARM =。\ AppX \ Retail\ARM\Microsoft.VCLibs.ARM.14.00.appx"在SDK清单中。

   读取SDK清单文件"D:\Program Files(x86)\Windows Kits \10\Extension SDKs \ WindowsMo​​bile \10.0.10586.0 \ SDKManifest.xml"。

  ;  目标配置和架构"零售|支持"

    SDK清单中未找到FrameworkIdentity属性,将此SDK视为非框架SDK。

   否"APPX"在SDK清单中找到指示应用程序包位置的属性。如果在运行时需要应用程序包,项目可能无法运行。

ExpandSDKReferences:

 枚举SDK参考"Microsoft.AdMediator.Universal,Version = 1.0"来自"D:\Program Files(x86)\ Mysrosoft SDKs \ Windows's Kits \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ;添加引用"References \CommonConfiguration\ARM\Microsoft.AdMediator.Universal.MicrosoftAdvertising.dll"。

 添加引用"References \CommonConfiguration\Neutral\Microsoft.AdMediator.Core.dll"。

 添加引用"References \CommonConfiguration\Neutral\Microsoft.AdMediator.Universal.dll"。

 添加文件"Redist \CommonConfiguration \ Neutral\Microsoft.AdMediator.Universal\Themes \Generic.xbf"来自带有目标路径的redist文件夹"Microsoft.AdMediator.Universal\Themes\Generic.xbf"。

 添加文件"Redist\CommonConfiguration\Neutral\Microsoft.AdMediator.Universal.pri"来自目标路径"Microsoft.AdMediator.Universal.pri"的redist文件夹。

 枚举SDK参考"Microsoft.Advertising.Xaml,Version = 10.0"来自"D:\Program Files(x86)\ Mysoftoft SDKs \ Windows's Kits \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ;添加引用"References \CommonConfiguration\\\
eutral\Microsoft.Advertising.winmd"。

 枚举SDK参考"Microsoft.VCLibs,Version = 14.0"来自"D:\Program Files(x86)\ Mysoftoft SDKs \ Windows's Kits \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\枚举SDK参考"WindowsMo​​bile,版本= 10.0.10586.0"来自"D:\Program Files(x86)\ Windows Wits\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\添加引用"D:\Program Files(x86)\ Windows Home Kits \\ References \ Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\\\ 1.0.0.0 \ Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd"。

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract\1.0.0.0\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract .winmd"。$
 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsPhoneContract\2.0.0.0\Windows.ApplicationModel.Calls.CallsPhoneContract.WinMD" ;.

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0\Windows.ApplicationModel.SocialInfo.SocialInfoContract.winmd" ;.

 添加引用"D:\Program Files(x86)\ Windows Wits \10\References\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\\\ 1.0.0.0\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.WinMD"。

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0\Windows.ApplicationModel.Wallet.WalletContract.winmd" ;.

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract\1.0.0.0\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract.winmd" ;.

 添加引用"D:\Program Files(x86)\ Windows Wits\\ References \ Windows.Devices.SmartCards.SmartCardEmulatorContract\\\\\\\\\\

 添加引用"D:\Program Files(x86)\ Windows Wits \\\\ References \ Windows.Embedded.DeviceLockdown.DeviceLockdownContract\\\ 1.0.0.0 \ Windows.Embedded.DeviceLockdown.DeviceLockdownContract.WinMD"。

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0\Windows.Gaming.Preview.GamesEnumerationContract.winmd" ;.

 添加引用"D:\Program Files(x86)\ Windows Wits \\\\ References \ Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\\\ 1.0.0.0 \ Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract.WinMD"。

 添加引用"D:\Program Files(x86)\ Windows Wits\\ References \ Windows.Networking.Sockets.ControlChannelTriggerContract\\\ 1.0.0.0 \ Windows.Networking.Sockets.ControlChannelTriggerContract.winmd"。

 添加引用"D:\Program Files(x86)\ Windows Wits\\ References \ Windows.Phone.PhoneContract\ .1.0.0.0 \ Windows.Phone.PhoneContract.WinMD"。

 添加引用"D:\Program Files(x86)\Windows Kits \10\References\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0\Windows.Phone.StartScreen.DualSimTileContract.WinMD"。

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.Services.Maps.GuidanceContract\2.0.0.0\Windows.Services.Maps.GuidanceContract.winmd" ;.

 添加引用"D:\Program Files(x86)\ Windows Home Kits \\ References \ Windows.Services.Maps.LocalSearchContract\\\ 2.0.0.0 \ Windows.Services.Maps.LocalSearchContract.winmd"。

 添加引用"D:\Program Files(x86)\ Windows Wits\\ References \ Windows.Security.EnterpriseData.EnterpriseDataContract \\\ 2.0.0.0 \ Windows.Security.EnterpriseData.EnterpriseDataContract.winmd"。

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0\Windows.System.Profile.ProfileHardwareTokenContract.winmd" ;.

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0\Windows.System.Profile.ProfileRetailInfoContract.winmd" ;.

 添加参考" d:\Program文件(x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileContract\1.0.0.0\Windows.System.UserProfile.UserProfileContract.winmd" ;.

 添加引用"D:\Program Files(x86)\ Windows Wits\\ References \ Windows.UI.WebUI.Core.WebUICommandBarContract\\\ 1.0.0.0 \ Windows.UI.WebUI.Core.WebUICommandBarContract .winmd"。$
MarkupCompilePass1:

 创建目录"obj \\\\\\\ \\GuideToCompleteYoga.W10.csproj:XamlCompiler错误WMC1006:无法解析程序集或Windows元数据文件'System.Runtime.dll'

D:\Program Files(x86)\ MSBuild\Microsoft \ WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(264,5):Xaml内部错误错误WMC9999:类型Universe无法解析程序集:System.Runtime,Version = 4.0.0.0, Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。
[C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj]

完成建设项目" C: \AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj" (重建目标) - 失败。

完成建筑项目"C:\ AppStudio \ 1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.sln" (重建目标) - 失败。



建立失败。



"C: \AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" (重建目标)(1) - >

" C:\ AppStudio \ 1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.W10 \GuideToCompleteYoga.W10.csproj" (重建目标)(2) - >
$
(MarkupCompilePass1目标) - > 

  C:\ AppStudio \\\\\\\\\\ />
  D:\Program Files(x86)\ MSBuild\Microsoft \ WindowsXaml \\\\\\\\\\\\\\\\\\\\\\\\\\\ :类型Universe无法解析程序集:System.Runtime,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。
[C:\ AppStudio \\\1965806.dpesrq-2 \src-publish_ARM \GuideToCompleteYoga.W10 \GuideToCompleteYoga.W10.csproj]



    0警告

    2错误



经过的时间00:00:01.01






Installable Package

解决方案

您好,


根据错误信息,似乎没有为您的解决方案调用NuGet还原,应用程序需要运行以查找project.json文件中指定的依赖项。


尝试下载源代码,然后在Visual Studio中打开项目。


点击工具>选择 Nuget包管理器>打开
包管理器 控制台



然后,您可以运行以下命令来完成包恢复:


PM>安装包Microsoft.NETCore.UniversalWindowsPlatform


然后你可以按照 创建一个Windows 8.1应用包 以重新生成您的包。


如果它有用,您可以标记它作为答案,因为其他社区成员可能面临类似的问题。


感谢您的理解。


祝你好运,


Mattew Wu









I went to generate my app packages and got this 

Warnings and errors

There was an error compiling the source code.
There was an error compiling the source code.

for my Installable Package and publish package.

I also generated a package for an app already published on the windows store just to see if I got the same errors and I did.

I am using windows 8.1 but I was using windows 10 home version (free upgrade) when I published my other apps and did not get this error.

here is the ARM log file for the installable package


C:\AppStudio\1965806.dpesrq-2\src-publish_ARM>call "D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsMSBuildCmd.bat" 

C:\AppStudio\1965806.dpesrq-2\src-publish_ARM>c:\nuget3\nuget.exe restore -OutputDirectory c:\packages 
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'.

C:\AppStudio\1965806.dpesrq-2\src-publish_ARM>IF "true" == "true" (SET _PACKAGE_BUILD_MODE=;UapAppxPackageBuildMode=StoreUpload )  ELSE (SET _PACKAGE_BUILD_MODE=;UapAppxPackageBuildMode=SideloadOnly ) 

C:\AppStudio\1965806.dpesrq-2\src-publish_ARM>ECHO ;UapAppxPackageBuildMode=StoreUpload 
;UapAppxPackageBuildMode=StoreUpload

C:\AppStudio\1965806.dpesrq-2\src-publish_ARM>msbuild "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" /t:Rebuild /p:Configuration=Release;Platform=ARM;AppxPackageSigningEnabled=false;NuGetPackagesDirectory=C:\packages;AppxBundle=Never;UapAppxPackageBuildMode=StoreUpload 
Microsoft (R) Build Engine version 14.0.25123.0
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 12/14/2016 10:27:35 PM.
Project "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" on node 1 (Rebuild target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Release|ARM".
The target "_GetPackagingOutputs" listed in an AfterTargets attribute at "D:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets (707,11)" does not exist in the project, and will be ignored.
Project "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" (1) is building "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj" (2) on node 1 (Rebuild target(s)).
CoreClean:
  Creating directory "obj\ARM\Release\".
PrepareForBuild:
  Creating directory "bin\ARM\Release\".
GetInstalledSDKLocations:
  Searching for SDKs targeting "UAP, 10.0.10586.0".
  Searching for SDKs targeting "Windows, 8.1".
ResolveSDKReferences:
    Reading SDK manifest file "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.AdMediator.Universal\1.0\SDKManifest.xml".
    Targeted configuration and architecture "Retail|arm"
    No FrameworkIdentity attributes were found in the SDK manifest, treating this SDK as a non-framework SDK.
    No "APPX" attributes indicating app package locations were found in the SDK manifest. If an app package is required at runtime the project may not run.
    Reading SDK manifest file "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.Advertising.Xaml\10.0\SDKManifest.xml".
    Targeted configuration and architecture "Retail|arm"
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail-arm" in the SDK manifest. 
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail" in the SDK manifest. 
    Found "FrameworkIdentity" attribute "Name=Microsoft.Advertising.Xaml, MinVersion=10.0.1510.0, Publisher='CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
    Found "APPX" location attribute "AppX-x86=.\AppX\x86\Microsoft.Advertising.Xaml.x86.10.0.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-x64=.\AppX\x64\Microsoft.Advertising.Xaml.x64.10.0.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-ARM=.\AppX\ARM\Microsoft.Advertising.Xaml.ARM.10.0.appx" in the SDK manifest.
    Reading SDK manifest file "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
    Targeted configuration and architecture "Retail|arm"
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Retail-arm" in the SDK manifest. 
    Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00, MinVersion = 14.0.23816.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
    Found "APPX" location attribute "AppX-Retail-x86=.\AppX\Retail\x86\Microsoft.VCLibs.x86.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Retail-x64=.\AppX\Retail\x64\Microsoft.VCLibs.x64.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Retail-ARM=.\AppX\Retail\ARM\Microsoft.VCLibs.ARM.14.00.appx" in the SDK manifest.
    Reading SDK manifest file "D:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsMobile\10.0.10586.0\SDKManifest.xml".
    Targeted configuration and architecture "Retail|arm"
    No FrameworkIdentity attributes were found in the SDK manifest, treating this SDK as a non-framework SDK.
    No "APPX" attributes indicating app package locations were found in the SDK manifest. If an app package is required at runtime the project may not run.
ExpandSDKReferences:
  Enumerating SDK Reference "Microsoft.AdMediator.Universal, Version=1.0" from "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.AdMediator.Universal\1.0\".
  Adding reference "References\CommonConfiguration\ARM\Microsoft.AdMediator.Universal.MicrosoftAdvertising.dll".
  Adding reference "References\CommonConfiguration\Neutral\Microsoft.AdMediator.Core.dll".
  Adding reference "References\CommonConfiguration\Neutral\Microsoft.AdMediator.Universal.dll".
  Adding file "Redist\CommonConfiguration\Neutral\Microsoft.AdMediator.Universal\Themes\Generic.xbf" from redist folder with target path "Microsoft.AdMediator.Universal\Themes\Generic.xbf".
  Adding file "Redist\CommonConfiguration\Neutral\Microsoft.AdMediator.Universal.pri" from redist folder with target path "Microsoft.AdMediator.Universal.pri".
  Enumerating SDK Reference "Microsoft.Advertising.Xaml, Version=10.0" from "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.Advertising.Xaml\10.0\".
  Adding reference "References\CommonConfiguration\neutral\Microsoft.Advertising.winmd".
  Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "D:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
  Enumerating SDK Reference "WindowsMobile, Version=10.0.10586.0" from "D:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsMobile\10.0.10586.0\".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\1.0.0.0\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract\1.0.0.0\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsPhoneContract\2.0.0.0\Windows.ApplicationModel.Calls.CallsPhoneContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0\Windows.ApplicationModel.SocialInfo.SocialInfoContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\1.0.0.0\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0\Windows.ApplicationModel.Wallet.WalletContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract\1.0.0.0\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardEmulatorContract\2.0.0.0\Windows.Devices.SmartCards.SmartCardEmulatorContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Embedded.DeviceLockdown.DeviceLockdownContract\1.0.0.0\Windows.Embedded.DeviceLockdown.DeviceLockdownContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0\Windows.Gaming.Preview.GamesEnumerationContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\1.0.0.0\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\1.0.0.0\Windows.Networking.Sockets.ControlChannelTriggerContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.PhoneContract\1.0.0.0\Windows.Phone.PhoneContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0\Windows.Phone.StartScreen.DualSimTileContract.WinMD".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.GuidanceContract\2.0.0.0\Windows.Services.Maps.GuidanceContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.LocalSearchContract\2.0.0.0\Windows.Services.Maps.LocalSearchContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.Security.EnterpriseData.EnterpriseDataContract\2.0.0.0\Windows.Security.EnterpriseData.EnterpriseDataContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0\Windows.System.Profile.ProfileHardwareTokenContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0\Windows.System.Profile.ProfileRetailInfoContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileContract\1.0.0.0\Windows.System.UserProfile.UserProfileContract.winmd".
  Adding reference "D:\Program Files (x86)\Windows Kits\10\References\Windows.UI.WebUI.Core.WebUICommandBarContract\1.0.0.0\Windows.UI.WebUI.Core.WebUICommandBarContract.winmd".
MarkupCompilePass1:
  Creating directory "obj\ARM\Release\intermediatexaml\".
C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'
D:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(264,5): Xaml Internal Error error WMC9999: Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. [C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj]
Done Building Project "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj" (Rebuild target(s)) -- FAILED.
Done Building Project "C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" (Rebuild target(s)) -- FAILED.

Build FAILED.

"C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.sln" (Rebuild target) (1) ->
"C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj" (Rebuild target) (2) ->
(MarkupCompilePass1 target) -> 
  C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll'
  D:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(264,5): Xaml Internal Error error WMC9999: Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. [C:\AppStudio\1965806.dpesrq-2\src-publish_ARM\GuideToCompleteYoga.W10\GuideToCompleteYoga.W10.csproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.01


Installable Package

解决方案

Hello,

Based on the error info, it seems NuGet restore is not called for your solution, which your app need to run to find dependencies specified in the project.json files.

Try downloading your source code, and open up the project in Visual Studio.

Click Tools>Select Nuget package manager>Open Package Manager Console.

Then you can run the following command to complete package restore:

PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

Then you can follow the Create a Windows 8.1 app package to re-generate your package.

If it's helpful, you might mark it as answer since other community member can be faced with the similar issue.

Thanks for your understanding.

Best regards,

Mattew Wu



这篇关于使用Windows 8.1 app studio获取错误消息“编译源代码时出错。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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