CnPack Forum


 
Subject: plesae add a new property to Source template
fehernyul
新警察
Rank: 1



UID 241746
Digest Posts 0
Credits 10
Posts 3
点点分 10
Reading Access 10
Registered 2015-9-30
Status Offline
Post at 2015-9-30 17:11  Profile | Blog | P.M. 
plesae add a new property to Source template

Hi,

Please add a new property to Source Template wich insert a code segment like %Unit% just without extension.
For example I have a unit: "Unit1.pas"
I use Source Template to insert %Unit% to code, and it insert this: 'Unit1.pas',
but I need this string: 'Unit1'.

Thanks!!!
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-30 23:22  Profile | Blog | P.M. 
Thanks for your suggestion. We'll consider this.
Top
ukrainian
普通灌水员
Rank: 2



UID 54558
Digest Posts 0
Credits 58
Posts 19
点点分 58
Reading Access 10
Registered 2010-11-7
Status Offline
Post at 2015-10-1 16:44  Profile | Blog | P.M. 
Hi,
Can you add property %Version% or similar, that adds FileVersion of project. We have a lot of Source Template and for some comments we add FileVersion by hand.
It will be nice if there will be property for that.

Thanks!!!
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-10-4 20:54  Profile | Blog | P.M. 
Our latest nightly build version 781 is ready for these 2 new macros.

Download:

http://www.cnpack.org/downbuilds.php
Top
ukrainian
普通灌水员
Rank: 2



UID 54558
Digest Posts 0
Credits 58
Posts 19
点点分 58
Reading Access 10
Registered 2010-11-7
Status Offline
Post at 2015-12-22 15:38  Profile | Blog | P.M. 
Hi,
I use Delphi XE8 and with the last build(Ver: 1.0.9.803 Build 2015.12.12) on CnWizard and macro %ProjectVersion% did not work. I set for my project configuration only for "All COnfigurations" version info in section <PropertyGroup Condition="'$(Base)'!=''" >, but when I use this macro it add 1.0.0.0
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-12-22 17:27  Profile | Blog | P.M. 
I'll check this problem.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-12-28 20:29  Profile | Blog | P.M. 
There's a problem when we retrieve version numbers from XE2 or above. Now we fix it and build a new nightly-build 807 version, could you help do download it and try again?

http://www.cnpack.org/downbuilds.php
Top
ukrainian
普通灌水员
Rank: 2



UID 54558
Digest Posts 0
Credits 58
Posts 19
点点分 58
Reading Access 10
Registered 2010-11-7
Status Offline
Post at 2015-12-29 03:45  Profile | Blog | P.M. 
Hi,
I test last nightly-build and everything is OK. Now it correct adds version info from macro %ProjectVersion%.
Thanks!
Top
 




All times are GMT++8, the time now is 2024-11-23 16:26

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007450 second(s), 8 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP