Skip to content

Instantly share code, notes, and snippets.

@sushihangover
Created December 12, 2016 03:56
Show Gist options
  • Save sushihangover/3a0b22603819a9d4c14ef84f8f6d5a9a to your computer and use it in GitHub Desktop.
Save sushihangover/3a0b22603819a9d4c14ef84f8f6d5a9a to your computer and use it in GitHub Desktop.
Cakebuid cake Rewrite existing AssemblyInfo
Task("AssemblyInfoRewrite")
.Does (() =>
{
var assemblyInfoSettings = JsonConvert.DeserializeObject<AssemblyInfoSettings>(
JsonConvert.SerializeObject(
ParseAssemblyInfo("./CommonAssemblyInfo.cs")
)
);
assemblyInfoSettings.Company = "My Wicked New Company";
CreateAssemblyInfo("./NewCommonAssemblyInfo.cs", assemblyInfoSettings);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment