0

So I built my project but its executable has ".dll" in Original Filename metadata. (https://i.stack.imgur.com/e8eRv.png) Is there any way to configure what will be put in this field on build? Solutions that requires modifying .exe after build are not allowed in my case so I would be appreciated for any help with that.

I've tried to set some attributes in AssemblyInfo but I`m not sure if I was using right one.

UPD:1/31/2023: It is not about setting the name. It is about setting the extension. In Properties I am able to set only name, but not the extension.

  • Right click the project and hit Properties. See if there is anything in there that lets you set the name. – Christopher Jan 30 '23 at 15:49
  • 2
    Does this answer your question? [Is it possible to set the OriginalFilename property for a .Net assembly with Visual Studio?](https://stackoverflow.com/questions/6024523/is-it-possible-to-set-the-originalfilename-property-for-a-net-assembly-with-vis) – GSerg Jan 30 '23 at 15:51
  • That's accurate for any project that targets .NET5+, they get built to a .dll. The .exe file is the host and does not contain any of your code, its job is to get the CLR loaded and initialized. – Hans Passant Jan 30 '23 at 16:57
  • Welcome! Please always [edit] clarifications into your question post instead of hiding them in the comments! Comments are for _soliciting_ clarifications- not for providing them. – starball Jan 31 '23 at 00:07
  • @HansPassant, could you please share the link to the source where you got this info? – Edik Baitsym Jan 31 '23 at 15:41
  • look at your install files. You'll see the dll. – John Lord Jan 31 '23 at 15:44
  • probably delete the file and build it, maybe the metadata is outdated. – Lokanath Jan 31 '23 at 16:51

0 Answers0