/// <summary> /// Initializes a new instance of the LanguageStrategyBase class. /// </summary> /// <param name="languageName">Name of the language.</param> /// <param name="fileExtension">The file extension.</param> /// <param name="projectFileExtension">The project file extension.</param> protected LanguageStrategyBase(string languageName, string fileExtension, string projectFileExtension) { this.Logger = Logger.Null; this.LanguageName = languageName; this.FileExtension = fileExtension; this.ProjectFileExtension = projectFileExtension; this.TempSourceFileDirectory = IOHelpers.CreateTempDirectory("SourcesToCompile"); this.TempAssemblyDirectory = IOHelpers.CreateTempDirectory("CompiledAsemblies"); this.RemoteCompilerType = "DotNet40"; this.AssemblyPathResolver = new AssemblyPathResolver(); }
/// <summary> /// Initializes a new instance of the LanguageStrategyBase class. /// </summary> /// <param name="languageName">Name of the language.</param> /// <param name="fileExtension">The file extension.</param> /// <param name="projectFileExtension">The project file extension.</param> protected LanguageStrategyBase(string languageName, string fileExtension, string projectFileExtension) { this.Logger = Logger.Null; this.LanguageName = languageName; this.FileExtension = fileExtension; this.ProjectFileExtension = projectFileExtension; #if SILVERLIGHT && !WIN8 this.RemoteCompilerType = "Silverlight4"; #else #if WIN8 this.TempSourceFileDirectory = @"C:\Users\mfrintu\Documents\SourcesToCompile"; this.TempAssemblyDirectory = @"C:\Users\mfrintu\Documents\CompiledAssemblies"; this.RemoteCompilerType = "DotNet40"; this.AssemblyPathResolver = new AssemblyPathResolver(); #else this.TempSourceFileDirectory = IOHelpers.CreateTempDirectory("SourcesToCompile"); this.TempAssemblyDirectory = IOHelpers.CreateTempDirectory("CompiledAsemblies"); this.RemoteCompilerType = "DotNet40"; this.AssemblyPathResolver = new AssemblyPathResolver(); #endif #endif }