Nestor
Nestor

Reputation: 8384

How to set version number and product information in .Net Core self-contained exe

I have a .Net Core v2.2 project and I set the Publish options as follows:

enter image description here

I also set the Package information:

enter image description here

Also modified the .csproj file as follows:

enter image description here

The Details of the generated(?) exe looks like this:

enter image description here

What else should I set to make those informations appear not only in the dll file but in the exe file as well?

UPDATE

According to the possible answer, there is a fundamental change in the upcoming version of the .Net Core SDK starting with version 3.0. After verification, this question and answer will help solving the issue instead of providing an explanation of why it can't be done.

Upvotes: 2

Views: 2191

Answers (1)

LoLance
LoLance

Reputation: 28116

What else should I set to make those informations appear not only in the dll file but in the exe file as well?

I updated my Visual Studio 2019 to version 16.2.5 (latest is 16.3.1) and installed the new .Net Core 3.0 SDK. After that the generated exe contains all the version information and can be used as expected.
SDK download link.

Upvotes: 2

Related Questions