Created
December 12, 2016 03:56
-
-
Save sushihangover/3a0b22603819a9d4c14ef84f8f6d5a9a to your computer and use it in GitHub Desktop.
Cakebuid cake Rewrite existing AssemblyInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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