Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
52 views

I have couple of windows 11 widgets. Implemented with the sample provided by microsoft which isn't AOT compatible. I found this question / awnser which looks very useful How to rewrite the Windows App ...
Dave Smits's user avatar
  • 1,881
0 votes
0 answers
33 views

I’m publishing a .NET WPF app with the following publish settings: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <...
Alyra's user avatar
  • 1
3 votes
1 answer
161 views

I have implemented INetworkListManagerEvents interface to get network connectivity state changes as a C# class. In my project, the INetworkListManagerEvents is code generated via CsWin32 source ...
Guezt's user avatar
  • 157
2 votes
1 answer
232 views

I'm developing a UWP application using .NET 9 with NativeAOT. When I try to publish the project, I get the following error: D:\Documents\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.4\build\...
sh0ckj0ckey's user avatar
0 votes
0 answers
106 views

Json and JsonSubTypes in a C# / .NET 9 project with AOT-publishing enabled. These 2 libs are not trimming/AOT ready yet, but I'm sure the types that involved in my project are all reserved and working ...
Aries's user avatar
  • 219
0 votes
1 answer
83 views

i tried to resolve aot warnings in my .Net maui app. I have a mapping like this: Microsoft.Maui.Handlers.TabbedViewHandler.Mapper.AppendToMapping("TabbedPageCenterLabels", (handler, view)...
Saftpresse99's user avatar
0 votes
0 answers
46k views

I have some code in c# that I export to the dll with [UnmanagedCallersOnly(EntryPoint = "XXX")]: public class Symbol { [UnmanagedCallersOnly(EntryPoint = "...
Stas Badzi's user avatar
-1 votes
1 answer
104 views

How can i deploy my .Net 8 AOT AWS Lambda project when the project has a dependency? aws-extensions-for-dotnet-cli discussions: https://github.com/aws/aws-extensions-for-dotnet-cli/discussions/364 ...
Christopher Cowen's user avatar
2 votes
1 answer
274 views

I have a .NET 9 project that gets published as a native AOT library for Windows and Linux. This library exports some methods, that are in turn called from Java via FFM from Windows or Linux again. In ...
Lennart's user avatar
  • 10.3k
0 votes
0 answers
609 views

I currently have an app using EF Core with the database functions spread across several projects: Data Model project, containing all model objects that will be found in the database DbContext project,...
IanRawley's user avatar
1 vote
1 answer
223 views

For Windows App SDK apps, to provide Windows widgets, it's required to write some COM interop code according to the official documentation: First, Implement a class factory that will instantiate ...
Generic's user avatar
  • 13
2 votes
0 answers
1k views

I have a .NET 8 / C# application that I've compiled using AOT and ReadyToRun (R2R) options to maximize startup speed. The application deals with opening a serial port, writing/reading data from it and ...
Geo P's user avatar
  • 730
0 votes
0 answers
430 views

We use automapper.data in our project and it works quite well. Now I am experimenting the idea of publishing our project in AOT mode, After adding these in our project file and run our code <...
jerry xu's user avatar
1 vote
1 answer
589 views

I am trying to add configuration to my console app via appsettings.json with a connection settings object public class ConnectionSettings { public string IP { get; set; } = string.Empty; ...
Birdalicious's user avatar
2 votes
1 answer
149 views

I am trying to introduce the .NET NativeAOT ilc.exe compiler into the build process of my compiler. For this, I am currently calling it with the following arguments: ilc in.dll -o out.exe To get ...
Jonas _'s user avatar
  • 172
2 votes
1 answer
4k views

My .NET 8 application is AOT-compiled so it needs to use JsonTypeInfo and cannot use reflection-based serialisation. Now I also want to use the converter feature to store objects differently than in ...
ygoe's user avatar
  • 20.7k
3 votes
0 answers
386 views

F#, .NET 8 console app with DUs generates AOT & trimming warnings even for simple usage. I am creating an F#, .NET 8 (SDK 8.0.302) console app and publish as a single file with AOT, trimming. I ...
tl-dr's user avatar
  • 31
2 votes
2 answers
1k views

I have searched on the Internet, and I couldn't find a concrete explanation regarding this. I have used the Minimal API before, and when I am using the .NET AOT, the project source code seems ...
Newbie's user avatar
  • 63
0 votes
0 answers
105 views

The goal is to create a simple test application that enables the loading of a script and accesses a predefined static class and outputs a value from this class to the console. Version Used: 4.10.0-3....
3HMonkey's user avatar
  • 137
0 votes
1 answer
690 views

I'm trying to build a static .a lib in C that would sha256 encrypt a string. I will access the lib from a C# NativeAOT program. Before adding the sha256 encryption code I used the following commands ...
user2384330's user avatar
0 votes
1 answer
235 views

I try to call manually mapped AOT-compiled .NET dll. When i create delegate to function pointer and call it, it throws exception "Fatal error. Invalid Program: attempted to call a ...
Илья's user avatar
3 votes
1 answer
597 views

I'm developing a small project in C# with .NET 7 that ends up being compiled into C++ code using AOT compilation. When publishing a project, I would like to obfuscate the C# code and send the ...
qp qp's user avatar
  • 31
5 votes
1 answer
3k views

It looks like JsonStringEnumConverter requires dynamic code and we should switch to JsonStringEnumConverter<T> in AOT. [JsonConverter(typeof(JsonStringEnumConverter<MyEnum>))] public enum ...
user246392's user avatar
  • 3,147
3 votes
1 answer
1k views

I'm writing a bare-metal OS kernel in C#, and I would like to execute the .NET AOT compiler from the command line without using the dotnet command, also avoiding the use of a .csproj file. On ...
Frank Ray's user avatar
2 votes
1 answer
779 views

I'm moving some libraries to .NET 8 and I'm trying to use the new JsonNamingPolicy.SnakeCaseLower for enums (I have a custom converter that I currently use that uses reflection but I want to drop it). ...
Juan Zamudio's user avatar