I am publishing dotnet core app like this:
call dotnet publish MyApp.csproj -c Release -o "%scriptDir%\..\dist\Publish\MyApp" -r win10-x64
My ".csproj" file includes this (VersionInfo.cs file):
<ItemGroup>
<Compile Include="..\VersionInfo.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
It contains info like this:
[assembly: AssemblyVersion("1.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyCompany("My Company")]
[assembly: AssemblyCopyright("Copyright © My Company 2018")]
[assembly: AssemblyTrademark("My Company")]
And in the output "MyApp.dll" gets all of this information: versions, company name and etc. set in file properties. But generated runtime executable "MyApp.exe" doesn't have any Version Info :(.
- Why doesn't the runtime contain the same info as the DLL?
- How do I add the info from the "VersionFile.cs" file to the specified runtime executable?