Smart replacement mechanism -- __GUID()__ or similar #25

robrich opened this Issue Nov 28, 2011 · 0 comments


None yet

1 participant

robrich commented Nov 28, 2011

For both [assembly:Guid()] in AssemblyInfo.cs and the node in .csproj files, each new copy should have their own guid, not the guid of the folder that I cloned. I'd like a "smart replacement" mechanism where I can specify one of a few pre-canned functions to call. Perhaps in this case, the token is "GUID()".

Other cool replacements could be DATE() or YEAR() or USER() or COMPANY() pulled from DateTime.Now, DateTime.Year, %USERNAME%, and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization (so says These additional replacements are used in other AssemblyInfo.cs attributes, and though my templified copies will all be correct, sharing my templates yields incorrect results for my co-workers / social friends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment