Questions tagged [.net-native]

Use this tag for questions about .NET Native, a set of tools that enable applications targetting the .NET Framework to be compiled to native machine code. Depending on the specifics of your question it may also be appropriate to tag it [.net] and/or with a programming-language tag.

.NET Native is a set of tools that enable .NET applications to be compiled to native machine code.

149 questions
5
votes
2 answers

Steps to diagnose translated UWP stack trace

So I have received a stack trace from my UWP windows application in release mode. I've now translated all the addresses to their method names using windbg. I now have this output: System.InvalidOperationException: InvalidOperation_EnumFailedVersion.…
BradStevenson
  • 1,974
  • 7
  • 26
  • 40
5
votes
1 answer

.Net Native - Type not included in compilation

I found weird warning messages during .net native compilation for Universal App Platform - Windows 10. C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(886,5): warning : Type 'Windows.UI.Xaml.Controls.Image' was not…
razor118
  • 473
  • 4
  • 16
5
votes
2 answers

Can we compile an asp.net 5 application by .net native?

The role of .net native in .net ecosystem is confusing for me. I heard it is just for universal windows applications, but also heard that it is part of CoreFX. I think having the option to compile to .net native can have many advantages (including…
alisabzevari
  • 8,008
  • 6
  • 43
  • 67
5
votes
1 answer

How do I enable .Net Native on my Application?

With the recent announcement of .Net compiling to native code, I want to know how can I enable this functionality in my applications? Does it work for all project types and all platforms?
John Koerner
  • 37,428
  • 8
  • 84
  • 134
4
votes
1 answer

Multiple framework dependencies matching [UWP]

I have an issue with debugging my UWP application. In debug bug mode there is error but in release mode. I have this error and couldn't find any solution. Any advice? Thanks.
Fırat Esmer
  • 778
  • 1
  • 14
  • 26
4
votes
1 answer

Activator.CreateInstance(type) Throws Exception

Actually it is very strange exception, because it happens only when I build the project as Release and does not happen at all when I choose Debug. In debug mode, the app works perfect and the following code works well. Here is the code of my…
Moamen Naanou
  • 1,683
  • 1
  • 21
  • 45
4
votes
2 answers

App passes WACK but fails store submission Certification

I am observing a strange situation where my app passes WACK on my computer, but submission to the store fails at Certification stage, due to unsupported APIs. I am using MSVC 15 Update 2. Solution Consists of: Universal APP Class Library…
4
votes
0 answers

Asynchronous APIs are slower post .Net Native compilation

We created a project that returns the average time taken to complete large number of asynchronous tasks on a single thread and on multiple threads. These tasks are mostly empty and just cause a context break on the same thread using await…
4
votes
3 answers

The type "Windows.UI.Xaml.FrameworkElement" is defined in an assembly that is not referenced

I have an UWP app that i'm trying to build. It all works fine in debug mode, but when i switch to release and then try to build, it shows the error error CS0012: The type 'Windows.UI.Xaml.FrameworkElement' is defined in an assembly that is not…
Tommy
  • 51
  • 7
4
votes
1 answer

UWP - .NET Native tool chain compilation error

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…
Daniel
  • 273
  • 4
  • 18
4
votes
1 answer

.NET Native optimization breaks an application

In one of the applications I've encountered an error associated with the optimization of code. I tried to repeat this behavior in the test application. The application is available on GitHub: https://github.com/altk/NullableError The error occurs…
Viacheslav Dronov
  • 1,029
  • 1
  • 8
  • 11
4
votes
0 answers

UnityContainer.Resolve crashes when .NET Native tool chain is enabled

We have a Windows 10 UWP app that runs fine under Debug builds and crashes under Release builds. What it is about release builds that makes it crash is that .NET Native tools chain is enabled - disabling that allows the app to run. But that's not a…
Glaucus
  • 848
  • 8
  • 14
4
votes
1 answer

UWP App crashes when downloaded from store, but not when sideloaded

My application (UWP,C#/xaml) works fine in release mode if I deploy it through Visual Studio, or if I sideload the appx on my phone. But if I download it from store and run it, it crashes with the following exception System.IO.FileLoadException :…
4
votes
2 answers

.NET Native compilation in Visual Studio 2015 (Windows 10) fails

I recently upgraded from Windows 8.1 Pro to Windows 10 Pro. I also installed Visual Studio 2015 Professional and uninstalled Visual Studio 2013 Professional. Whenever I try to build a Windows 10 app in release mode with ".NET Native tool chain"…
markus
  • 177
  • 1
  • 13
3
votes
0 answers

Difference between Native AOT and AOT in .NET Mobile Android/iOS

.NET 7 brings Native AOT. How's it different than the AOT already available in .NET 6 Android app? 2nd question: Is the Xamarin Android/iOS .NET runtimes replaced by the .NET 6 Android/iOS runtimes?
JamesL
  • 351
  • 2
  • 10
1 2
3
9 10