I am deploying an application as a self contained win-x64 application. Doing this generates an .exe that will be used to start the application on the client machine, however I need to have the "Product Version" and the "File Version" set on the .exe. My issue is that this .exe does not have either of those properties set, despite every other binary that is deployed having those properties set.
Here is the publish command that is ran to generate the self contained application binaries:
dotnet publish MyApp.csproj -c MyCustomRelease -r win-x64 --self-contained=true -v normal
Additionally, I have the following properties set for MyApp.csproj set. Here are those:
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Configurations>Debug;Release;MyCustomRelease</Configurations>
<Platforms>AnyCPU</Platforms>
<AssemblyVersion>3.2.0</AssemblyVersion>
<Version>3.2.0</Version>
<FileVersion>3.2.0</FileVersion>
</PropertyGroup>
But when I check the version of my .exe, I do not see 3.2.0 set for the file or the product versions. However the .dlls generated do have those set correctly. What am I missing?