C
C#•2y ago
borat4640

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
Kouhai
Kouhai•2y ago
Without any logs or exception it's hard to determine what causes that
borat4640
borat4640OP•2y ago
@Kouhai
borat4640
borat4640OP•2y ago
This is the error that I can see when I run the exe from cmd.
Aaron
Aaron•2y ago
they seem to not have gotten all the files somehow
borat4640
borat4640OP•2y ago
Apart from that when I load the exe to visual studio and debug I don't see any such error.
Kouhai
Kouhai•2y ago
It looks like what was sent, wasn't a publish builds some how
borat4640
borat4640OP•2y ago
borat4640
borat4640OP•2y ago
@Kouhai this is the setting that I used.
Kouhai
Kouhai•2y ago
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?
borat4640
borat4640OP•2y ago
@Kouhai yes
Kouhai
Kouhai•2y ago
@borat try to add <IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile> to your csproj and publish again
borat4640
borat4640OP•2y ago
Ok. @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.
Kouhai
Kouhai•2y ago
ThumbsUpSmile
borat4640
borat4640OP•2y ago
It worked , that was a magic. 🎩 Thanks @Kouhai
Kouhai
Kouhai•2y ago
Np, don't forget to /close ThumbsUp
Want results from more Discord servers?
Add your server