Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: File Version Info customization is limited #9365

Open
slxdy opened this issue Oct 27, 2023 · 4 comments
Open

[Feature Request]: File Version Info customization is limited #9365

slxdy opened this issue Oct 27, 2023 · 4 comments
Labels
Feature Request gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you triaged

Comments

@slxdy
Copy link

slxdy commented Oct 27, 2023

Summary

The File Version Info customization is very limited. For example, while you can set the output File Version, Copyright, Company, you cannot set the File description field, or the Original filename field.

(The fields I'm talking about)
image

If there is an existing work-around, please let me know because it's a bit urgent for me.

Background and Motivation

I'm currently working on an application that has a custom exe name, but its process name (in task manager) should be something else. The problem is that the task manager takes the File description field as the process name.

As for the Original filename field, my built application has to be renamed after it's built and I don't want to reveal the original name of the application, so I want to replace the field value with something else.

Proposed Feature

Both could have their own csproj properties.
For example:

<FileDescription>Hello World</FileDescription>
<OriginalFilename>CoolApp.exe</OriginalFilename>

Alternative Designs

No response

@slxdy slxdy added Feature Request needs-triage Have yet to determine what bucket this goes in. labels Oct 27, 2023
@KalleOlaviNiemitalo
Copy link

https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#generateassemblyinfo lists Description and Title properties. IIRC, the C# compiler copies one of these to the File Description field.

As for the Original filename field, my built application has to be renamed after it's built and I don't want to reveal the original name of the application, so I want to replace the field value with something else.

Doesn't the original filename match the assembly name in the metadata anyway? How are you hiding that?

@KalleOlaviNiemitalo
Copy link

There's also the option to specify a Win32 resource file to the compiler (https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/resources#win32resource) and then none of this Win32 version information is automatically generated.

@rainersigwald
Copy link
Member

Leaving this open to collect interest in making some of these controllable via MSBuild, but @KalleOlaviNiemitalo's suggestions are good.

@rainersigwald rainersigwald added gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you and removed needs-triage Have yet to determine what bucket this goes in. labels Nov 1, 2023
@GenieLabApp
Copy link

I have the same problem.
The File Description field is used to display the application name in Task Manager. So it's strange that it can't be set directly in C# like other attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you triaged
Projects
None yet
Development

No branches or pull requests

5 participants