C
C#3d ago
!

✅ debug

i want to make it so my file is just the exe or minimal files when i send it to people
13 Replies
!
!OP3d ago
willing to pay if anyone can help
!
!OP3d ago
No description
Angius
Angius3d ago
$rule6
Angius
Angius3d ago
The question has nothing to do with debugging either $singlefile
MODiX
MODiX3d ago
dotnet publish -c Release -r <runtime identifier> -p:PublishSingleFile=true Use of -p:PublishSingleFile=true implies --self-contained true. Add --self-contained false to publish as runtime-dependent. -r RID and -p:PublishSingleFile=true can be moved to .csproj as the following properties:
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
but to target multiple RIDs, you have to use dotnet publish with the -r option for each RID. You can also add -p:IncludeNativeLibrariesForSelfExtract=true to include native libraries (like Common Language Runtime dlls) in the output executable, but be aware of drawbacks and consider using an installer framework instead of that property with PublishSingleFile. You might want to instead publish your application compiled Ahead Of Time to native code, see $nativeaot for examples. Single file publishing | Runtime Identifier (RID) catalog | dotnet publish
Angius
Angius3d ago
This is how you compile to a single file
Jimmacle
Jimmacle3d ago
guna :PepeSus:
Angius
Angius3d ago
Completely missed that lmao, isn't it like $50 a year?
Jimmacle
Jimmacle3d ago
all i know is it's correlated with making specific types of TOS skirting software
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
!
!OP3d ago
yea why
Jimmacle
Jimmacle3d ago
what exactly are you making?

Did you find this page helpful?