C
C#13mo ago
innocent cat

I want to compile a program myself with less files

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
GitHub
Update build-release.yml · ProGenshinImpactPlayer/Roblox-Account-Ma...
Application that allows you to add multiple accounts into one application allowing you to easily play on alt accounts without having to change accounts - Update build-release.yml · ProGenshinImpact...
No description
4 Replies
innocent cat
innocent catOP13mo ago
I only want the file Roblox Account Manager.exe
Buddy
Buddy13mo ago
$singlefile
MODiX
MODiX13mo 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. 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
Create a single file for application deployment - .NET
Learn what single file application is and why you should consider using this application deployment model.
.NET Runtime Identifier (RID) catalog - .NET
Learn about the runtime identifier (RID) and how RIDs are used in .NET.
innocent cat
innocent catOP13mo ago
thanks
Want results from more Discord servers?
Add your server