GetExtensionOfSourceFiles() public method

public GetExtensionOfSourceFiles ( ) : string
return string
 internal static ScriptCompilerBase CreateCompilerInstance(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
 {
   if (island._files.Length == 0)
     throw new ArgumentException("Cannot compile MonoIsland with no files");
   using (List<SupportedLanguage>.Enumerator enumerator = ScriptCompilers._supportedLanguages.GetEnumerator())
   {
     while (enumerator.MoveNext())
     {
       SupportedLanguage current = enumerator.Current;
       if (current.GetExtensionICanCompile() == island.GetExtensionOfSourceFiles())
         return current.CreateCompiler(island, buildingForEditor, targetPlatform, runUpdater);
     }
   }
   throw new ApplicationException(string.Format("Unable to find a suitable compiler for sources with extension '{0}' (Output assembly: {1})", (object) island.GetExtensionOfSourceFiles(), (object) island._output));
 }
Esempio n. 2
0
 internal static ScriptCompilerBase CreateCompilerInstance(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
 {
     if (island._files.Length == 0)
     {
         throw new ArgumentException("Cannot compile MonoIsland with no files");
     }
     foreach (SupportedLanguage language in _supportedLanguages)
     {
         if (language.GetExtensionICanCompile() == island.GetExtensionOfSourceFiles())
         {
             return language.CreateCompiler(island, buildingForEditor, targetPlatform, runUpdater);
         }
     }
     throw new ApplicationException(string.Format("Unable to find a suitable compiler for sources with extension '{0}' (Output assembly: {1})", island.GetExtensionOfSourceFiles(), island._output));
 }
Esempio n. 3
0
 internal static ScriptCompilerBase CreateCompilerInstance(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
 {
     if (island._files.Length == 0)
     {
         throw new ArgumentException("Cannot compile MonoIsland with no files");
     }
     foreach (SupportedLanguage language in _supportedLanguages)
     {
         if (language.GetExtensionICanCompile() == island.GetExtensionOfSourceFiles())
         {
             return(language.CreateCompiler(island, buildingForEditor, targetPlatform, runUpdater));
         }
     }
     throw new ApplicationException(string.Format("Unable to find a suitable compiler for sources with extension '{0}' (Output assembly: {1})", island.GetExtensionOfSourceFiles(), island._output));
 }
Esempio n. 4
0
 internal static ScriptCompilerBase CreateCompilerInstance(MonoIsland island, bool buildingForEditor, BuildTarget targetPlatform, bool runUpdater)
 {
     if (island._files.Length == 0)
     {
         throw new ArgumentException("Cannot compile MonoIsland with no files");
     }
     using (List <SupportedLanguage> .Enumerator enumerator = ScriptCompilers._supportedLanguages.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             SupportedLanguage current = enumerator.Current;
             if (current.GetExtensionICanCompile() == island.GetExtensionOfSourceFiles())
             {
                 return(current.CreateCompiler(island, buildingForEditor, targetPlatform, runUpdater));
             }
         }
     }
     throw new ApplicationException(string.Format("Unable to find a suitable compiler for sources with extension '{0}' (Output assembly: {1})", (object)island.GetExtensionOfSourceFiles(), (object)island._output));
 }
 private static ScriptingLanguage ScriptingLanguageFor(MonoIsland island)
 {
   return SolutionSynchronizer.ScriptingLanguageFor(island.GetExtensionOfSourceFiles());
 }
		private string ProjectFooter(MonoIsland island)
		{
			ScriptingLanguage language = SolutionSynchronizer.SupportedExtensions[island.GetExtensionOfSourceFiles()];
			return string.Format(this._settings.GetProjectFooterTemplate(language), this.ReadExistingMonoDevelopProjectProperties(island));
		}
		private string ProjectHeader(MonoIsland island)
		{
			string text = "4.0";
			string text2 = "10.0.20506";
			ScriptingLanguage language = SolutionSynchronizer.SupportedExtensions[island.GetExtensionOfSourceFiles()];
			if (this._settings.VisualStudioVersion == 9)
			{
				text = "3.5";
				text2 = "9.0.21022";
			}
			return string.Format(this._settings.GetProjectHeaderTemplate(language), new object[]
			{
				text,
				text2,
				this.ProjectGuid(island._output),
				this._settings.EngineAssemblyPath,
				this._settings.EditorAssemblyPath,
				string.Join(";", this._settings.Defines.Union(island._defines).ToArray<string>()),
				SolutionSynchronizer.MSBuildNamespaceUri,
				Path.GetFileNameWithoutExtension(island._output)
			});
		}
		public string ProjectFile(MonoIsland island, bool forVisualStudio)
		{
			ScriptingLanguage key = SolutionSynchronizer.SupportedExtensions[island.GetExtensionOfSourceFiles()];
			string arg = (!forVisualStudio) ? string.Empty : this.vsstub;
			return Path.Combine(this._projectDirectory, string.Format("{0}{1}{2}", Path.GetFileNameWithoutExtension(island._output), arg, SolutionSynchronizer.ProjectExtensions[key]));
		}