© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
20 replies
danilwaffle

✅ building nativeaot project with static library still requires library to be copied

i have tried to build nativeaot project with:
    <ItemGroup>
        <DirectPInvoke Include="raylib"/>
        <NativeLibrary Include="raylib.lib"/>
    </ItemGroup>
    <ItemGroup>
        <DirectPInvoke Include="raylib"/>
        <NativeLibrary Include="raylib.lib"/>
    </ItemGroup>

and it still requires me to copy dll file, copying makes it work, but i need single executable without any dependency libraries laying around
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Help with building library application
C#CC# / help
3y ago
Building a native executable with NativeAOT in one single file
C#CC# / help
4y ago
NativeAOT + emscripten
C#CC# / help
5mo ago
NativeAOT multiple Dlls
C#CC# / help
5w ago