2

ユニバーサル アプリ アプリケーションで nuguet からインポートされた System.Threading 、 System.IO または System.ReflectionTypeExtensions のメソッドを呼び出すとエラーが発生します。以下に例を示します。

電話 :

private void Button_Click(object sender, RoutedEventArgs e)
{
    var thread = Thread.CurrentThread; 
}

エラー:

Could not load file or assembly 'System.Threading.Thread, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
or one of its dependencies.
Reference assemblies should not be loaded for execution. 
They can only be loaded in the Reflection-only loader context. 
(Exception from HRESULT: 0x80131058) 
4

0 に答える 0