to demonstrate i will use illustrative names.
I have a project with name App.
I i enter on my terminal and type: dotnet publish --configuration Release -o build
i will have an exe ./build/App.exe.
this is the current behavior.
So, i need the executable name to be cli.exe when i run the publish command instead of App.exe.
How can i do that?
I have been tried the:
<TargetName>cli</TargetName>
but this tag only changes the .dll file, not the .exe.
Instead of TargetName use AssemblyName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With