I want to versioning my asp.net core app.
I followed this link: http://www.matthiaseinig.de/2013/05/20/auto-generate-fileversion-for-all-projects-in-a-solution-with-t4/ , but I want to remove project assembly info, but I didn't find it.
How to remove duplicated assembly info? I want to override asp core assemblies with another file.
After a while I realize that the best solution is to use a T4 file, the version is incremented automatically after each build.
look here:



Right now properties could be defined in
.csprojor usingAssemblyInfo.cs, but only the one place could be used, otherwise "Duplicate" errors are generated.If you want to use
AssemblyInfo.cs, add the following into.csprojto avoid duplication errors:If you are interesting how does it work, look into GenerateAssemblyInfo task.
Otherwise, remove
AssemblyInfo.csand add the following property into your.csprojfile: