How to update only version info in assemblyinfo.cs using cake?
问题 I am very new to cakebuild. I want to update the version info of assemblyinfo.cs using cakebuild. public static void CreateAssemblyInfo() method overwrites the entire content of the assemblyinfo file. But I need just version info to be updated. How can I achieve this.? Regards, Aradhya 回答1: If you do not want to have separate files you can also use a regex replace: #addin "Cake.FileHelpers" var yourVersion = "1.0.0.0"; Task("SetVersion") .Does(() => { ReplaceRegexInFiles("./your/AssemblyInfo