Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Team,


I am using jenkins file groovy concept.

I am trying to deploy unmanaged C++ code via Jenkins.

Build version number i will get from Nexus site.

I want to know how to implement versioning to exe file by modifying assemblyinfo.cpp file.

In net i m able to see only managed code versioning.

Could you please help me...

Thanks,
Srinivas.

What I have tried:

I tried to modify all the AssemblyInfo.cpp, but no luck
Posted
Updated 30-Nov-18 6:34am
v2
Comments
Richard MacCutchan 30-Nov-18 8:57am    
"no luck"
Try rubbing a magic lamp.

1 solution

The assemblyinfo.cpp file is part of the C++/CLI (i.e. managed code) system and not used in unmanaged projects. If you want versioning in your project then you need to do it in your resource script VERSIONINFO section.
 
Share this answer
 
Comments
nsvrao 3-Dec-18 4:34am    
Could you please share some sample code on the same.
Richard MacCutchan 3-Dec-18 5:19am    
Sample code for what? There is nothing in Win32 that offers the same features as the .NET AssemblyInfo classes. You can read about the version resources at Version Information | Microsoft Docs[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900