.net-native

UWP - .NET Native tool chain compilation error

依然范特西╮ 提交于 2019-11-30 18:46:52
问题 I've developed a simple and small Universal Windows App that uses EF7 and SQLite. It compiles and runs smoothly when the option "Compile with .NET Native tool chain" is unchecked . If I check the option "Compile with .NET Native tool chain" , I get the following compilation error: Error Type 'System.MarshalByRefObject' was not included in compilation, but was referenced in type 'Microsoft.Data.Entity.Design.OperationExecutor'. There may have been a missing assembly. After this there's a lot

Very poor performance of async task run on threadpool in .Net native

左心房为你撑大大i 提交于 2019-11-28 21:12:29
问题 I've observed a strange difference in managed vs .Net native code. I've a heavy job redirected to threadpool. When running the app in managed code, everything works smooth but as soon as I switch on native compilation - the task run few times slower and so slow that it hangs UI thread (I guess CPU is so overloaded). Here are two screenshots from debug output, the one on the left is from managed code, and the one on the right is from native compilation. As you can see the time consumed by UI