private static int MainCore(string[] args) { #if NET472 var loader = new DesktopAnalyzerAssemblyLoader(); #else var loader = new CoreClrAnalyzerAssemblyLoader(); #endif return(DesktopBuildClient.Run(args, RequestLanguage.CSharpCompile, Csc.Run, loader)); }
private static int MainCore(string[] args) { #if BOOTSTRAP ExitingTraceListener.Install(); #endif #if NET472 var loader = new DesktopAnalyzerAssemblyLoader(); #else var loader = new CoreClrAnalyzerAssemblyLoader(); #endif return(DesktopBuildClient.Run(args, RequestLanguage.VisualBasicCompile, Vbc.Run, loader)); }
internal CoreClrCompilerServerHost(string clientDirectory) : base(clientDirectory: clientDirectory, sdkDirectory: null) { AssemblyReferenceProvider = (path, properties) => new CachingMetadataReference(path, properties); AnalyzerAssemblyLoader = CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault(); }
public static int Main(string[] args) => Csc.Run(args: args, clientDirectory: AppContext.BaseDirectory, sdkDirectory: null, analyzerLoader: CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault());
protected override int RunLocalCompilation(List <string> arguments, string clientDir, string sdkDir) { return(_compileFunc(clientDir, sdkDir, arguments.ToArray(), CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault())); }
protected override int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter) { return(_compileFunc(arguments, buildPaths, textWriter, CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault())); }
public static int Main(string[] args) => Vbc.Run(args: args, clientDirectory: AppContext.BaseDirectory, sdkDirectory: @"C:\Windows\Microsoft.NET\Framework\v4.0.30319", analyzerLoader: CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault());
internal CoreClrCompilerServerHost(string clientDirectory) : base(clientDirectory: clientDirectory, sdkDirectory: null) { AssemblyReferenceProvider = (path, properties) => new CachingMetadataReference(path, properties); AnalyzerAssemblyLoader = new CoreClrAnalyzerAssemblyLoader(); }