示例#1
0
 // maps the actual Outputtype to one that is in the legenda (winexe/exe mapped to application)
 private void DetermineOutputTypeByName()
 {
     OutputType = ConfigurationType.Unexpected;
     if (OutputTypeName.ToLower() == ConfigurationType.Makefile.ToString().ToLower())
     {
         OutputType = ConfigurationType.Makefile;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.Application.ToString().ToLower())
     {
         OutputType = ConfigurationType.Application;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.DynamicLibrary.ToString().ToLower())
     {
         OutputType = ConfigurationType.DynamicLibrary;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.Library.ToString().ToLower())  // C# libraries are never static
     {
         OutputType = ConfigurationType.Library;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.StaticLibrary.ToString().ToLower())
     {
         OutputType = ConfigurationType.StaticLibrary;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.Utility.ToString().ToLower())
     {
         OutputType = ConfigurationType.Utility;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.WinExe.ToString().ToLower())
     {
         OutputType = ConfigurationType.Application;
     }
     else if (OutputTypeName.ToLower() == ConfigurationType.Exe.ToString().ToLower())
     {
         OutputType = ConfigurationType.Application;
     }
     else
     {
         Console.WriteLine("Warning: Project '" + OutputName + "' has unknown OutputTypeName '" + OutputTypeName + "'");
     }
 }
示例#2
0
 private static OutputTypeName GetName(OutputTypeName sourceType)
 {
     return(new (sourceType, Enumerable.Empty <OutputTypeName>(), true));
 }
示例#3
0
 public Array(OutputTypeName name, TypeMetadata metadata, IOutputTypeProvider provider)
     : base(metadata, provider)
 {
     Name = GetName(name);
 }
 /// <inheritdoc />
 public virtual string GenerateName(OutputTypeName name) => _options.TypeNamingStrategy.Resolve(name.Name);