xsharp.eu • Strange exe-naming
Page 1 of 1

Strange exe-naming

Posted: Wed Aug 30, 2017 4:53 pm
by FFF
Chris,
by chance i had a look into my bindebug folder and found some "strange" files like:
bcc5f20a-a180-4b27-823b-7abf0367d4e6__SQL.exe or
d20e51d5-b630-4f65-bee9-f7ba8612cfd6__TomLibVirt.dll
The "regular" ones are named like: __TomLibVirt.dll
I suspect that may be result of some problems i had, but i'm curious ;) - probably i should simply delete them and forget?

Karl

Strange exe-naming

Posted: Wed Aug 30, 2017 8:00 pm
by Chris
Hi Karl,

I had such files too from time to time and was wondering where they are coming from. Just yesterday I realized they are created when you try to compile an app that is already running, when this happens, the existing dll/exe gets renamed to that strange file name.

Guess that's a feature of roslyn, tried to search about this, but did not find anything. Maybe Robert has further info?

Chris

Strange exe-naming

Posted: Thu Aug 31, 2017 6:43 am
by robert
Chris,

Yes this is what Roslyn does: when there is a sharing violation writing the output file then the existing file is renamed and marked for deletionSee:

https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/Portable/CommandLine/CommonCompiler.CompilerEmitStreamProvider.cs, line 80.

The files should be hidden. I guess Karl has the option to show hidden files enabled.
The files normally should automatically be deleted when they are no longer in use.

Robert