-
-
Notifications
You must be signed in to change notification settings - Fork 442
-
Hi everyone,
I'm working on a C# project using Silk.NET (along with some other libraries like StbImageSharp and System.Text.Json), and I'm trying to produce a single self-contained .exe file using dotnet publish -c Release.
Here’s my .csproj configuration:
**
WinExe
win-x64
net9.0
Voxel_CSharp
true
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ImplicitUsings>false</ImplicitUsings>
<Nullable>enable</Nullable>
<Optimize>true</Optimize>
<DebugType>none</DebugType>
<Deterministic>true</Deterministic>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
Is there something I'm missing or doing incorrectly to make this work with Silk.NET? Any help or guidance would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Not overly familiar with this, but wanted to suggest using the Visual Studio Publish UI for this process. The documentation for it lists a number of considerations that may be affecting your situation.
https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=vs
Beta Was this translation helpful? Give feedback.