2016-05-21 20 views
11

共有コードベースを使用してUWPクライアントアプリケーション、UWP IOTアプリケーション、および.NETコアアプリケーションを実行するシナリオがあります。 .NET Core RC1では、クラスライブラリ(パッケージ)を構築し、そのライブラリの基本フレームワークとして "dotnet5.4"を使用しました。UWPアプリケーションと.NETコアRC2:netstandard1.4パッケージを参照できません

"生成ビルド出力"を使用すると、.NETコアアプリケーション(コンソール)から作成したナゲットパッケージを参照し、回避策を使用して(%local%.dnx - >%local%.nugetのパッケージをUWPアプリケーションはパッケージを参照して使用することもできました。

今、RC2のものが少し変わってしまいました。アップグレードされたライブラリ(プロジェクトファイルでツールをアップグレードし、project.json、netstandard1.4を変更しました(1.5はUTC10でthisに従って動作しません) )完全に.NETコアコンソールアプリケーションを使用します。 UWPについては

私は悪名高い

"[...] provides a compile-time reference assembly [...] but there is no run-time assembly compatible with [...]" 

エラーの数十を取得するので、私は、ライブラリを追加することはできません。

はいくつかの周りを探した後、私は問題を特定しようとしましたが、私も起因してSystem.IO.FileSystem.Watcherへの参照を追加することができないことが分かった:私は、最小限のソリューションを持っている

System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. 
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot). 
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. 
Some packages are not compatible with UAP,Version=v10.0 (win10-arm). 
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot). 
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86. 
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot. 
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm. 
Some packages are not compatible with UAP,Version=v10.0 (win10-x64). 
System.IO.FileSystem.Watcher 4.0.0-rc2-24027 provides a compile-time reference assembly for System.IO.FileSystem.Watcher on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 
Some packages are not compatible with UAP,Version=v10.0 (win10-x86). 
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot). 

アップロードした問題を再現するto OneDrive

私はproject.jsonで依存関係を除いて、空白のUWPのテンプレートへの変更を行わない:

"dependencies": 
{ 
    "Microsoft.ApplicationInsights": "2.1.0-beta4", 
    "Microsoft.ApplicationInsights.PersistenceChannel": "2.0.0-beta3", 
    "Microsoft.ApplicationInsights.WindowsApps": "1.1.1", 
    "Microsoft.NETCore.Platforms": "1.0.1-rc2-24027", 
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0", 
    "NETStandard.Library": "1.5.0-rc2-24027", 

    "System.IO.FileSystem.Watcher": "4.0.0-rc2-24027" 
}, 

注:私は、最新バージョンにMicrosoft.NETCore.UniversalWindowsPlatformを更新しました。 NETStandard.LibraryとMicrosoft.NETCore.Platformsを追加しました。

お願いします。 ありがとうございます - サイモン

答えて

2

System.IO.FileSystem.Watcherは現在UWPではサポートされていません。現代のSDKは、実装する必要があるWindows API(ReadDirectoryChanges)を公開していません。

-Eric、.NETチーム

関連する問題