ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

Hands-off my AssemblyInfo.cs! Code generation seems to stomp this every time... #335

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The AssemblyInfo file should be generated - but only if one is not already 
present. Thereby allowing the developer to edit their file without having it 
overriden... 

Additionally, we use the technique where we use a 'linked' item in the CSPROJ 
to point to an 'AssemblyInfoBase.cs' file located in the root of the solution 
tree which allows us to perform an 'xml poke' in our build script to set the 
AssemblyVersion in one spot for all projects.  It would be excellent if the 
templates would simply look for 'assemblyinfo*.cs' and then preserve any 
manually added files since the CSPROJ is being overwritten by each code 
generation...

Original issue reported on code.google.com by bh...@questis.com on 15 Sep 2010 at 9:54

GoogleCodeExporter commented 9 years ago
Hello,

This has already been completed in .netTiers 3.0. Have you created a patch for 
this in 2.3?

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 12:24

GoogleCodeExporter commented 9 years ago
No patch created. See prior responses from me... I don't have the familiarity 
with CodeSmith/NetTiers to be comfortable making changes yet... on the 
short-list though!

Original comment by bh...@questis.com on 21 Sep 2010 at 5:37

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the heads up. We could always use the help around here. Open source 
project with thousands of users but very little help on the bug fixing front :\.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 8:43

GoogleCodeExporter commented 9 years ago
Open NetTiers.cst and find the following line and change the true to false
this.RenderToFile("AssemblyInfo.cst", OutputDirectory + "\\AssemblyInfo.cs", 
true );

Original comment by CableGuy...@gmail.com on 10 May 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Hello,

I was going to go and apply this change to trunk but then realized that this 
would have negative side effects for anyone changing the namespaces/assembly 
names or the auto incrementing the build version. For now, please make the 
proposed changes that CableGuy said in the previous comment. This will be 
updated in 3.0 to use the CodeFileParser to cleanly merge in only the generated 
changes.

Thanks
-Blake 

Original comment by bniemyjski on 18 May 2011 at 5:28