Console Application published as PublishSingleFile the window auto close for few devloper.
I have published a .exe file with runtime framework included, and distributed to other developer for testing. Few of them are able to open it but for few it flashes and close suddenly , also the developer has .net core runtime installed.How this can be solved.
15 Replies
Without any logs or exception it's hard to determine what causes that
@Kouhai
This is the error that I can see when I run the exe from cmd.
they seem to not have gotten all the files somehow
Apart from that when I load the exe to visual studio and debug I don't see any such error.
It looks like what was sent, wasn't a publish builds some how
@Kouhai this is the setting that I used.
Yeah I can't read what's written in the pic, but are you sure you've sent the publish build?
The one in the
publish
folder?@Kouhai yes
@borat try to add
<IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile>
to your csproj and publish againOk.
@Kouhai it worked at my end and it created a single .exe file , just need to see now if it works for testers.
I will keep you posted.
It worked , that was a magic. 🎩
Thanks @Kouhai
Np, don't forget to
/close