Open AnchyDev opened 3 months ago
This is good to know, thank you. I will change it.
Published v1.2.
Though I now realise .NET 4.x is what comes with most Windows versions. Ah well.
Published v1.2.
Though I now realise .NET 4.x is what comes with most Windows versions. Ah well.
Since it is a pretty basic console app, you can write it in .NET 8 and publish it with the AOT compiler by adding this setting to your project file:
<PublishAot>true</PublishAot>
You can then publish for different environments using the publish command:
dotnet publish -r win-x84
This would allow the program to run on any computers without the .NET or .NET Framework runtime installed. More information about this can be read here.
Thank you -- really useful info. C# is my go-to language for hacking together quick scripts at home, but not what I code in professionally and it seems I am vastly lacking knowledge here.
When patching the file the binary now require administrator privileges to run.
The reason for this is because Windows will automatically ask for admin privileges for any files that contains the words
patch
,update
,installer
, etc.. (I'm not joking).It might be a good idea to just come up with a different name for simplicity for inexperience and ignorant users.