public string Build(IAssemblyInfoDetails details) { var sb = new StringBuilder(); details.Imports.Sort(); foreach (var import in details.Imports) { sb.AppendFormat("imports {0}{1}", import, Environment.NewLine); } foreach (var item in details.LineItems) { if (item.IsQuotedValue) sb.AppendFormat("<assembly: {0}(\"{1}\")>{2}", item.Name, item.Value, Environment.NewLine); else sb.AppendFormat("<assembly: {0}({1})>{2}", item.Name, item.Value, Environment.NewLine); } // if (details.ComVisibleSet) // sb.AppendFormat("<assembly: ComVisible({0})>{1}", details.AssemblyComVisible.ToString().ToLower(), Environment.NewLine); // // if (details.ClsCompliantSet) // sb.AppendFormat("<assembly: CLSCompliant({0})>{1}", details.AssemblyClsCompliant.ToString().ToLower(), Environment.NewLine); // // if (!String.IsNullOrEmpty(details.AssemblyVersion.ToString())) // sb.AppendFormat("<assembly: AssemblyVersion(\"{0}\")>{1}", details.AssemblyVersion, Environment.NewLine); // sb.AppendFormat("<assembly: AssemblyTitle(\"{0}\")>{1}", details.AssemblyTitle, Environment.NewLine); // sb.AppendFormat("<assembly: AssemblyDescription(\"{0}\")>{1}", details.AssemblyDescription, Environment.NewLine); // sb.AppendFormat("<assembly: AssemblyCopyright(\"{0}\")>{1}", details.AssemblyCopyright, Environment.NewLine); //sb.AppendFormat("[assembly: ApplicationNameAttribute(\"{0}\")]{1}", details._applicationName, Environment.NewLine); // sb.AppendFormat("<assembly: AssemblyCompany(\"{0}\")>{1}", details.AssemblyCompany, Environment.NewLine); // sb.AppendFormat("<assembly: AssemblyProduct(\"{0}\")>{1}", details.AssemblyProduct, Environment.NewLine); return sb.ToString(); }
private static void GlobalAssemblyInfo(IAssemblyInfoDetails aid) { aid.Company( "Brian Chavez" ) .Copyright( "Brian Chavez © " + DateTime.UtcNow.Year ) .Version( Properties.CommandLineProperties.Version() ) .FileVersion( Properties.CommandLineProperties.Version() ) .InformationalVersion( "{0} built on {1} UTC".With( Properties.CommandLineProperties.Version(), DateTime.UtcNow ) ) .Trademark( "MIT License" ) .Description( "http://www.github.com/bchavez/Coinbase" ); }
private static void GlobalAssemblyInfo(IAssemblyInfoDetails aid) { aid.Company("Brian Chavez") .Copyright("Brian Chavez © " + DateTime.UtcNow.Year) .Version(Properties.CommandLineProperties.Version()) .FileVersion(Properties.CommandLineProperties.Version()) .InformationalVersion("{0} built on {1} UTC".With(Properties.CommandLineProperties.Version(), DateTime.UtcNow)) .Trademark("MIT License") .Description("http://www.github.com/bchavez/Coinbase") .ComVisible(false); }
private static void GlobalAssemblyInfo(IAssemblyInfoDetails aid) { aid.Company( "Brian Chavez" ) .Copyright( "Brian Chavez © " + DateTime.UtcNow.Year ) .Version( BuildContext.Version ) .FileVersion( BuildContext.Version ) .InformationalVersion( $"{BuildContext.FullVersion} built on {DateTime.UtcNow} UTC" ) .Trademark( "MIT License" ) .Description( "http://www.github.com/bchavez/RethinkDb.Driver" ) .ComVisible(false); }
private static void GlobalAssemblyInfo(IAssemblyInfoDetails aid) { aid.Company( "Brian Chavez" ) .Copyright( "Brian Chavez © " + BuildContext.BuildDate.Year ) .Version( BuildContext.Version ) .FileVersion( BuildContext.Version ) .InformationalVersion($"{BuildContext.FullVersion} built on {BuildContext.BuildDate} UTC") .Trademark( "MIT License" ) .Description( "http://www.github.com/bchavez/Coinbase" ) .AddCustomAttribute("System.Runtime.CompilerServices", "InternalsVisibleTo", true, "Coinbase.Tests") .ComVisible(false); }
private static void GlobalAssemblyInfo(IAssemblyInfoDetails aid) { aid.Company("Brian Chavez") .Copyright("Brian Chavez © " + BuildContext.BuildDate.Year) .Version(BuildContext.Version) .FileVersion(BuildContext.Version) .InformationalVersion($"{BuildContext.FullVersion} built on {BuildContext.BuildDate} UTC") .Trademark("MIT License") .Description("http://www.github.com/bchavez/Coinbase") .AddCustomAttribute("System.Runtime.CompilerServices", "InternalsVisibleTo", true, "Coinbase.Tests") .ComVisible(false); }
public string Build(IAssemblyInfoDetails details) { var sb = new StringBuilder(); details.Imports.Sort(); foreach (string import in details.Imports) { sb.AppendFormat("using {0};{1}", import, Environment.NewLine); } foreach (var item in details.LineItems) { if (item.IsQuotedValue) { sb.AppendFormat("[assembly: {0}(\"{1}\")]{2}", item.Name, item.Value, Environment.NewLine); } else { sb.AppendFormat("[assembly: {0}({1})]{2}", item.Name, item.Value, Environment.NewLine); } } // // if (details.ComVisibleSet) // sb.AppendFormat("[assembly: ComVisible({0})]{1}", details.AssemblyComVisible.ToString().ToLower(), Environment.NewLine); // // if (details.ClsCompliantSet) // sb.AppendFormat("[assembly: CLSCompliant({0})]{1}", details.AssemblyClsCompliant.ToString().ToLower(), Environment.NewLine); // // if (!String.IsNullOrEmpty(details.AssemblyVersion.ToString())) // sb.AppendFormat("[assembly: AssemblyVersionAttribute(\"{0}\")]{1}", details.AssemblyVersion, // Environment.NewLine); // // sb.AppendFormat("[assembly: AssemblyTitleAttribute(\"{0}\")]{1}", details.AssemblyTitle, // Environment.NewLine); // // sb.AppendFormat("[assembly: AssemblyDescriptionAttribute(\"{0}\")]{1}", details.AssemblyDescription, // Environment.NewLine); // // sb.AppendFormat("[assembly: AssemblyCopyrightAttribute(\"{0}\")]{1}", details.AssemblyCopyright, // Environment.NewLine); //if (String.IsNullOrEmpty(details._applicationName)) //sb.AppendFormat("[assembly: ApplicationNameAttribute(\"{0}\")]{1}", details._applicationName, Environment.NewLine); // // sb.AppendFormat("[assembly: AssemblyCompany(\"{0}\")]{1}", details.AssemblyCompany, Environment.NewLine); // // sb.AppendFormat("[assembly: AssemblyProduct(\"{0}\")]{1}", details.AssemblyProduct, Environment.NewLine); return(sb.ToString()); }