2017-04-25 2 views
1

UWP Xamarin Forms 프로젝트에 Visual Studio 2017과 함께 자동으로 빌드 된 자체 제작 NuGet 패키지를 추가하려고합니다.Xamarin Forms UWP가 NuGet 패키지를 참조하지 못했습니다. 시스템 참조

NuGet Package Structure

그러나 나는 그것이 실패 (VS2017 패키지 관리자로) UWP 패키지에 패키지를 추가하려고 할 때.

Restoring packages for C:\Development\MyMobile\JobApp\JobApp\JobApp.UWP\project.json... 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-arm). 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-arm-aot). 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-x64). 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-x64-aot). 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-x86). 
System.Threading.ThreadPool 4.3.0 provides a compile-time reference assembly for System.Threading.ThreadPool on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot. 
System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot. 
System.Diagnostics.Process 4.3.0 provides a compile-time reference assembly for System.Diagnostics.Process on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot. 
One or more packages are incompatible with UAP,Version=v10.0 (win10-x86-aot). 
Package restore failed. Rolling back package changes for 'JobApp.UWP'. 
Time Elapsed: 00:00:02.8217814 
========== Finished ========== 

나는 시도하는 UWP 프로젝트 project.json을 편집 netstandard1.6 및 시스템에 추가. * 종속성을하지만, 슬프게도 작동하지 않았다했습니다.

{ 
    "dependencies": { 
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3", 
    "MvvmLight": "5.3.0", 
    "Newtonsoft.Json": "10.0.2", 
    "Xamarin.Forms": "2.3.4.231", 
    "System.Threading": "4.3.0", 
    "System.Runtime": "4.3.0", 
    "System.Diagnostics.Process": "4.3.0", 
    "System.Threading.Thread": "4.3.0", 
    "System.Threading.ThreadPool": "4.3.0" 
    }, 
    "frameworks": { 
    "uap10.0": { 
     "imports": "netstandard1.6" 
    } 
    }, 
    "runtimes": { 
    "win10-arm": {}, 
    "win10-arm-aot": {}, 
    "win10-x86": {}, 
    "win10-x86-aot": {}, 
    "win10-x64": {}, 
    "win10-x64-aot": {} 
    } 
} 

왜 UWP에 System. * 참조에 문제가 있습니까?

다음은 내 패키지의 NuSpec입니다.

<?xml version="1.0" encoding="utf-8"?> 
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> 
    <metadata> 
     <id>MyCommon</id> 
     <version>1.0.131</version> 
     <requireLicenseAcceptance>false</requireLicenseAcceptance> 
     <dependencies> 
      <group targetFramework=".NETFramework4.6"> 
       <dependency id="Quartz" version="3.0.0-alpha2" exclude="Build,Analyzers" /> 
       <dependency id="ImageSharp" version="1.0.0-alpha5-00046" exclude="Build,Analyzers" /> 
       <dependency id="System.ComponentModel" version="4.3.0" exclude="Build,Analyzers" /> 
      </group> 
      <group targetFramework=".NETStandard1.6"> 
       <dependency id="Quartz" version="3.0.0-alpha2" exclude="Build,Analyzers" /> 
       <dependency id="NETStandard.Library" version="1.6.1" exclude="Build,Analyzers" /> 
       <dependency id="ImageSharp" version="1.0.0-alpha5-00046" exclude="Build,Analyzers" /> 
       <dependency id="System.ComponentModel" version="4.3.0" exclude="Build,Analyzers" /> 
      </group> 
     </dependencies> 
    </metadata> 
</package> 
+0

'.nuspec' 파일을 제공 할 수 있습니까? –

+0

내 질문을 수정했습니다. 감사합니다. – wonea

답변

2

귀하의 NuGet 패키지는 System.Threading.ThreadSystem.Threading.ThreadPool 참조 Quartz 3.0.0-alpha2을 참조한다.

이 두 패키지 (System.Threading.ThreadSystem.Threading.ThreadPool)는 최소한 현재로서는 Universal Windows 플랫폼에서 지원되지 않습니다.

Here

은 IMMO Landwerth합니다 (.NET 팀의 프로그램 관리자)는 말한다 :

은이 항목에 대한 자세한 내용을 읽을 수있는 몇 가지 GitHub의 문제입니다 System.Threading.Thread에 대한 UWP 지원을 담당하고 있습니다.

+0

매우 유익합니다. 감사합니다. .NET Standard 1.6을 지원하지 않는 UWP는 실망 스럽습니다. 즉, Windows Mobile 지원이 지연 될 것입니다. – wonea

관련 문제