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
7
votes
1 answer

What is uwphost.dll?

I'm trying to certify my UWP application for the Windows Store and I'm getting a message that several methods in uwphost.dll aren't compatible with the store. API ExecuteAssembly in uwphost.dll is not supported for this application type.…
Quark Soup
  • 4,272
  • 3
  • 42
  • 74
7
votes
1 answer

.NET Native code crashes on constructor?.Invoke() (null-propagation)

After scratching my head for the better part of the day, I stumbled upon a very weird issue with .NET code that is compiled using .NET Native (used for Windows UWP apps). The following code works fine in any .NET runtime environment, including Mono,…
Philippe Leybaert
  • 168,566
  • 31
  • 210
  • 223
7
votes
1 answer

Extremely bad performance in .Net Native compiled UWP app

I encounter very bad performance when I compile my UWP app with the .Net Native Toolchain enabled. I profiled the running code (native) and it seems that methods relying on reflection (Unity IoC, Behaviors-SDK, Linq, sqlite-net) are the culprit. I…
Amenti
  • 1,511
  • 1
  • 13
  • 29
7
votes
3 answers

Release Package Build Failing for UWP

I built a Universal App for windows 10 and I didn't know about the Native Tool chain. When I was ready to create the package I got many errors and I looked for a solution without any luck. After a few attemps I decided to take my app, piece by…
Pippo46
  • 127
  • 2
  • 11
7
votes
1 answer

How to use .Net Native in WinForm and C# (Visual Studio 2015)?

I've just downloaded Visual Studio Community 2015 and I want to configure the .Net Native in my WinForm & C# Project, how do I do that?
David
  • 1,660
  • 3
  • 21
  • 33
6
votes
1 answer

Missing system assembly in .appxupload only

We're developing an UWP LOB app to be published via the Windows Store for Business (build target >= 1607). The UWP application references: Stubble.Core via nuget (targets .NET Standard 1.3) which references System.Reflection.TypeExtensions 4.3.0,…
Gene
  • 4,192
  • 5
  • 32
  • 56
6
votes
1 answer

Span and friends not working in .NET Native UWP app

Steps to reproduce: Open Visual Studio 2017 with latest update. Create a UWP project targetin 10240 (this is not mandatory, it's broken in all builds) Install System.Memory from nuget packages (click include prerelease) Copy paste this code in to…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
6
votes
1 answer

Error MCG0004:InternalAssert Assert Failed when building UWP app in release mode

I have an UWP app written in C# which builds (VS 14.0.25425.01 Update 3 on Windows 10.0.14393, target version of the project is build 14393) and runs in Debug mode, but fails to build in Release mode with the following…
Christoph
  • 1,964
  • 2
  • 27
  • 44
6
votes
2 answers

Why does .NET Native compile loop in reverse order?

I'm working on optimization techniques performed by the .NET Native compiler. I've created a sample loop: for (int i = 0; i < 100; i++) { Function(); } And I've compiled it with Native. Then I disassembled the…
Kamil T
  • 2,232
  • 1
  • 19
  • 26
5
votes
1 answer

Xamarin.Forms UWP app failing at run time with .net native tool chain but works otherwise

I have a Xamarin.Forms UWP app (Xamarin.Forms v3.4.0.1008975, UWP target/min version 16299, VS 2017 15.9.11). When compiled without the .net native tool chain it builds and runs correctly. When compiled with the .net native tool chain it builds…
rcarrington
  • 1,485
  • 2
  • 12
  • 23
5
votes
1 answer

Properly package a Desktop Bridge UWP App with a Win32 App

We already have a working UWP app for x86, x64 and ARM. Everything is fine regarding store certification, all tests are passed, including with .NET native compilation. We would like to use the Desktop Bridge (similar to what is specified here:…
xabre
  • 344
  • 3
  • 11
5
votes
1 answer

uwp app (.net native) and unhandled exception

I created uwp app(.Net native) for Windows 10 desktop. I use HockeyApp for collect live crash reports. Stack trace not informative. This is a long-standing problem and it does not have a solution. I tried this but it not working. I get these…
FetFrumos
  • 5,388
  • 8
  • 60
  • 98
5
votes
3 answers

UWP with xmlSerializer - System.InvalidOperationException: Unable to generate a temporary class (result=1) compile error

In my universal windows app I am storing user data transforming its objects into xml files through XmlSerializer. The app was compiling, building and running perfectly until somehow (without any change on the code) the build for release started to…
Daniel
  • 273
  • 4
  • 18
5
votes
1 answer

Azure Application Insights Debugging using the Call Stack

I am trying to figure out a way to debug exceptions that I have received in Azure's Application insights. I am new to this type of debugging since I've only really dealt with bugs in Visual Studio, where an active debugger is running. However, with…
5
votes
2 answers

Parameters aren’t passed to unmanaged DLL on x86 when building with .NET Native

I’m building a Windows 10 universal application (phone + tablets) + libraries. In the solution I have C++ dll project that builds unmanaged my.dll that’s called from C#. The DLL has export like this: // === C++ === typedef struct { int f1; uint32_t…
Soonts
  • 20,079
  • 9
  • 57
  • 130
1
2
3
9 10