Я пытаюсь развернуть приложение на Raspberry Pi.Я установил .NET Core Runtime и у меня возникает эта ошибка во время выполнения:
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
File name: 'System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options, Microsoft.Extensions.DependencyInjection.ServiceCollection services) [0x0003f] in <e66a1f96e9734a7fac7cea0901022728>:0
at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache+<>c__DisplayClass4_0.<GetOrAdd>b__2 (System.Int64 k) [0x000fe] in <e66a1f96e9734a7fac7cea0901022728>:0
at (wrapper delegate-invoke) System.Func`2[System.Int64,System.ValueTuple`2[System.IServiceProvider,System.Collections.Generic.IDictionary`2[System.String,System.String]]].invoke_TResult_T(long)
at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <69599a71bc4d4cd3a8a6e4323fa57b86>:0
at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options, System.Boolean providerRequired) [0x000b7] in <e66a1f96e9734a7fac7cea0901022728>:0
at Microsoft.EntityFrameworkCore.DbContext..ctor (Microsoft.EntityFrameworkCore.DbContextOptions options) [0x00051] in <e66a1f96e9734a7fac7cea0901022728>:0
at Microsoft.EntityFrameworkCore.DbContext..ctor () [0x00006] in <e66a1f96e9734a7fac7cea0901022728>:0
at XPathParserTest1.Model..ctor () [0x00000] in <51b90b049f2c424c9ef8e7dced3213d4>:0
at XPathParserTest1.Program.MainAsync (System.String[] args) [0x001a2] in <51b90b049f2c424c9ef8e7dced3213d4>:0
at XPathParserTest1.Program.Main (System.String[] args) [0x00015] in <51b90b049f2c424c9ef8e7dced3213d4>:0
Те же файлы проекта отлично работают в Windows с SDK и чистые Windows только с Runtime.
У меня нетЧтобы понять, что происходит, я попробовал некоторые решения с редактированием файла csproj и изменением зависимостей nuget.