C
C#2y ago
ShikShoxF1

❔ question

So i used to code some things before 2/3 years gave up it was while ago now im learning c++ i can say i learned alot my question is in c++ the output files comes clean just an .exe but on C# to actually run it i need 3/4 dlls ro run it depending on how many frame works i used can i compile it or compress it or whatever so i can run it in one exe without needing to install it( i add the install part cuz i asked one guy once and he told me to make it installer)
3 Replies
ACiDCA7
ACiDCA72y ago
yes you can publish the project as a single file.. you can chose between including the runtime aswell or not.. for net framework not often not necessary since its preinstalled on base windows install if your project is a netcore or newer either pack it into the executable or let the user install the runtime https://learn.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio?pivots=dotnet-7-0
Publish a .NET console application using Visual Studio - .NET
Learn how to use Visual Studio to create the set of files that are needed to run a .NET application.
ACiDCA7
ACiDCA72y ago
Create a single file for application deployment - .NET
Learn what single file application is and why you should consider using this application deployment model.
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server