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

Adding runtime directives for generic types in UWP app

We're having a serious issue with a custom generic type throwing exceptions related to serialization. Here's an example class: internal class Foo : IFoo { public void Bar(T tralalala) { //do whatever } } Now, we're using…
0
votes
1 answer

Problems with DataContractSerializer + DataContractResolver on UWP, .NET Native issue?

Below is a very short UWP unit test that attempts to serialize and then deserialize a class called Car using a DataContractSerializer. I plan to use this type of code in a UWP app to save session state when the app is suspended. Because I don't want…
0
votes
1 answer

.NET Native compiler ignores Explicit Method Overriding

In my UWP project I have a library which relies on IL instructions like override. .method public virtual instance void Method1(string s, object o) { .override ClassA::Method2 // code } This IL instruction works in debug but fails when I…
ger18s
  • 57
  • 4
0
votes
1 answer

Azure Storage SDK for .NET gives error when compiled with .Net Native in UWP app

I have a UWP app in Windows Store and I believe that windows store compiles app using .Net Native tool chain before delivering it to users device. My Code inserts/updates/deletes an object from storage table and it gets following…
0
votes
0 answers

MissingMetadataException release mode UWP 10

My app works fine in debug mode, however not in release mode Error: SRCSRV: The module '' does not contain source server information. SRCSRV: The module '' does not contain…
Developer
  • 59
  • 7
0
votes
1 answer

EF7 causes error with .Net native when creating database

I'm using EF7 with SQLite, in a UWP application, here's the situation : In the Model's OnConfiguring method, I used this code : protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { var path =…
0
votes
1 answer

MissingMetadataException when building UWP app with .Net native

I have this UWP app that uses a project (UWP class library) which itself uses EF7 and SQLite. I tried to build the app in the Release mode using .Net native tool chain, the build completes successfully (after a good long time, and after eating as…
0
votes
0 answers

MissingMetadataException when building Release version of UWP app

I have an app that runs perfectly in Debug mode but causes this error in Release mode. System.Reflection.MissingMetadataException Additional information: 'Windows.ApplicationModel.Resources.ResourceLoader' I have read that because the Release…
OzFrog
  • 47
  • 7
0
votes
1 answer

Does UWP's .Net Native together with asynchronous programming make obfuscation irrelevant?

I've read this blog (and readers' comments therein) with interest and it highlights UWP's binary compilation -- intended to boost performance -- but at the same time playing part in making reverse engineering difficult due to binary compilation. On…
user5525674
  • 921
  • 1
  • 7
  • 19
0
votes
2 answers

GetCustomAttributes method (System.Reflection.Module) returns nothing if Application compiled with .NET Native

I have UWP code which is working with System.Reflection.Module type. When the app is compiled in DEBUG mode all is ok and I can get custom attributes for the module. But when I switch to RELEASE mode and compile the app with .NET Native all those…
ger18s
  • 57
  • 4
0
votes
1 answer

Questions about Net Native

I have some questions about Net Native: Can I compile a windows form application with it? Is compiled file independent of .Net Framework?can I Run in Windows XP that is not installed .Net Framework? For using of that, must Visual Studio 2015…
0
votes
1 answer

Is .Net Native automatically enabled on a Windows Store App in Visual Studio 2015 on Windows 10?

If my reading is correct it seems that the .Net Native compilation is automagically enabled MSDN - Getting Started with .NET Native. I see that it may apply to newly created Windows Store Apps but I am also curious to previously created Store Apps…
0
votes
0 answers

Microsoft .NET Native alternative download link

Recently Microsoft released .NET Native. I tried to download this package from the MSDN page but I got the following error on the download page: Page Not Found The content that you requested cannot be found or you do not have permission to view…
EaxZone
  • 55
  • 1
  • 3
-1
votes
1 answer

UWP Compilation error with .net native compile option enabled : Internal compiler error: Specified cast is not valid

I have a UWP project where build works in debug mode but build fails in release mode where .net native compiler is selected. The UWP projects has many external third party libraries like RTSP client sharp, .net media foundation. The error shown is…
karthik vr
  • 55
  • 5
1 2 3
9
10