Example #1
0
        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));
        }
Example #2
0
        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();
 }
Example #4
0
 public static int Main(string[] args)
 => Csc.Run(args: args,
            clientDirectory: AppContext.BaseDirectory,
            sdkDirectory: null,
            analyzerLoader: CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault());
Example #5
0
 protected override int RunLocalCompilation(List <string> arguments, string clientDir, string sdkDir)
 {
     return(_compileFunc(clientDir, sdkDir, arguments.ToArray(), CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault()));
 }
Example #6
0
 protected override int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter)
 {
     return(_compileFunc(arguments, buildPaths, textWriter, CoreClrAnalyzerAssemblyLoader.CreateAndSetDefault()));
 }
Example #7
0
 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();
 }