This project has moved and is read-only. For the latest updates, please go here.

Compile with .NET Native tool chain

Feb 29, 2016 at 8:51 AM

I would like to ask whether anybody detects any weird behavior of MVVM Light Toolkit if you enable "Compile with .NET Native tool chain" in UWP project. For example if I send a message via messenger sometimes I receive it and sometimes not. It happens only when I enable ".NET Native tool".

I am currently trying to investigate the problem in order to provide some useful sample to demonstrate the issue.
Mar 7, 2016 at 12:46 PM
It is probably connected with this issue "WeakAction and WeakFunc .ctor are very slow on UWP".
Mar 8, 2016 at 10:30 AM
In my experience the messages arrive but registering them is very slow with .Net Native. All in all we have very serious performance problems when compiled with .Net Native which could very well be the problem kubakista linked.
Apr 14, 2016 at 7:25 AM
Hi Amenti,

it looks like that they fixed the issue with "WeakAction and WeakFunc", however, I can see still the problem with Messenger. Could you please confirm whether you can see still the same problem?

Thank you,
Apr 14, 2016 at 5:53 PM

Please note that nothing in MVVM Light code changed. The bug was acknowledged by Microsoft as being a bug of the .NET Core components. You will probably need the latest .NET core components to see a difference in behavior.

Hopefully this clarifies.

Take care
Jun 9, 2016 at 8:35 PM
It looks like that my problem was caused by this: Messenger message dispatch does not work for lambdas with closures.
Marked as answer by kubakista on 6/9/2016 at 12:35 PM