Skip to main content
Question

msbuild command line passing properties

  • November 5, 2025
  • 3 replies
  • 30 views

Neil Hayes
Forum|alt.badge.img+1

I’ve got to be missing something simple here:
 

msbuild ACME.cblproj --property:Version=8.0.0.2 --property:FileVersion=8.0.0.2

This will build a .NET Core 8.0 COBOL dll and pass in the properties for File Version and Product Version as if it where set on the project properties tab, under Application~Assembly Information.

But how does one set Product Name and File Description, setting “Product” on the project property~Application~Assembly Information doesn’t build it into the DLL.

I need to pass these properties in via command line, I don’t seem to find any documentation for all the StringFileInfo via msbuild.

I require these, I have some. 
  CompanyName=Company
  FileDescription
  InternalName
  FileVersion =FileVersion          
  LegalCopyright = Copyright
  LegalTrademarks = Trademark
  OriginalFilename
  ProductName
  ProductVersion = Vesrion

Anyone?

Neil

3 replies

Chris Glazier
Forum|alt.badge.img+2
  • Moderator
  • 3697 replies
  • November 5, 2025

Hi Neil,

When using Visual COBOL 11 and creating a .NET 8.0 .dll all of the assembly properties set on the application tab seem to appear except Company Name. I am not sure why that is excluded, but this also seems to be true in a C# assembly.
 

 


Neil Hayes
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • 35 replies
  • November 6, 2025

Using Visual COBOL 10 Update 10. -Using .NET Core 8.0

 


 


ProductName is not populated as well as CompanyName.

As an observation I can see this passed. 
 

 

 


Chris Glazier
Forum|alt.badge.img+2
  • Moderator
  • 3697 replies
  • November 6, 2025

I have found that this is a problem with how Windows displays the information. If I look into the generated .dll with a binary editor I can see that the Company name is embedded in the .dll.

If while in File Explorer, I hover the mouse over the .dll file name the Company Name is displayed. Company name is not available in the Properties->Details dialog, but it is available in the folder view. If you right-click in the title bar of the folder listing , i.e., in the size field, you can select the fields you wish to view. This includes Company. If you click on that:
 

The Company Name will appear in the List View.

I do not have the same result with Product Name, even in V10.0. If I fill in the Assembly attributes in the application tab they all seem to take effect.

This is also the behavior with a .dll generated from C# so I believe it is expected behavior.