void GenerateCommandLine(ServiceReferenceGeneratorOptions options)
 {
     AppendIfNotEmpty("/o:", options.OutputFileName);
     AppendIfNotEmpty("/n:", options.GetNamespaceMapping());
     AppendIfNotEmpty("/language:", options.Language);
     AppendIfTrue("/noConfig", options.NoAppConfig);
     AppendIfTrue("/i", options.GenerateInternalClasses);
     AppendIfTrue("/a", options.GenerateAsyncOperations);
     AppendIfTrue("/mergeConfig", options.MergeAppConfig);
     AppendIfNotEmpty("/config:", options.AppConfigFileName);
     AppendIfNotEmpty("/ct:", options.GetArrayCollectionTypeDescription());
     AppendIfNotEmpty("/ct:", options.GetDictionaryCollectionTypeDescription());
     AppendAssemblyReferences(options.Assemblies);
     AppendIfNotEmpty(options.Url);
 }
Пример #2
0
		void GenerateCommandLine(ServiceReferenceGeneratorOptions options)
		{
			AppendIfNotEmpty("/o:", options.OutputFileName);
			AppendIfNotEmpty("/n:", options.GetNamespaceMapping());
			AppendIfNotEmpty("/language:", options.Language);
			AppendIfTrue("/noConfig", options.NoAppConfig);
			AppendIfTrue("/i", options.GenerateInternalClasses);
			AppendIfTrue("/a", options.GenerateAsyncOperations);
			AppendIfTrue("/mergeConfig", options.MergeAppConfig);
			AppendIfNotEmpty("/config:", options.AppConfigFileName);
			AppendIfNotEmpty("/ct:", options.GetArrayCollectionTypeDescription());
			AppendIfNotEmpty("/ct:", options.GetDictionaryCollectionTypeDescription());
			AppendAssemblyReferences(options.Assemblies);
			AppendIfNotEmpty(options.Url);
			
			this.Arguments = argumentBuilder.ToString();
		}