C
C#

I want to compile a program myself with less files

I want to compile a program myself with less files

原神高手 😎11/19/2023
I was working on a open source project, and I want to compile the program myself so I setup a github workflow, every time I commit it get's builded, but there are a lot of files here so how do I remove them? https://github.com/ProGenshinImpactPlayer/Roblox-Account-Manager/actions/runs/6917858558
No description
原神高手 😎11/19/2023
I only want the file Roblox Account Manager.exe
BBuddy11/19/2023
$singlefile
MMODiX11/19/2023
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. You might want to instead publish your application compiled Ahead Of Time to native code, see $nativeaot for examples. https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file https://docs.microsoft.com/en-us/dotnet/core/rid-catalog https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
原神高手 😎11/19/2023
thanks

Looking for more? Join the community!

C
C#

I want to compile a program myself with less files

Join Server
Want results from more Discord servers?
Add your server
Recommended Posts