public async Task ShouldCheckFile()
        {
            var handler = new RoslynHandler(@"C:\Projects\Work\usga.rm.app\src\server\Usga.ResourceManager\Usga.ResourceManager.sln");
            var file    =
                @"C:\Projects\Work\usga.rm.app\src\server\Usga.ResourceManager\WebApps\Usga.Rma.WebApps.ResourceManager\Startup.cs";
            await handler.Initialize();

            await handler.CheckFile(file);
        }
Example #2
0
        static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                       .UseKestrel()
                       .UseContentRoot(Directory.GetCurrentDirectory())
                       .UseIISIntegration()
                       .UseStartup <Startup>()
                       .Build();

            var handler = new RoslynHandler(@"C:\Projects\Work\usga.rm.app\src\server\Usga.ResourceManager\Usga.ResourceManager.sln");
            var file    =
                @"C:\Projects\Work\usga.rm.app\src\server\Usga.ResourceManager\WebApps\Usga.Rma.WebApps.ResourceManager\Startup.cs";

            handler.Initialize().GetAwaiter().GetResult();
            handler.CheckFile(file).GetAwaiter().GetResult();

            host.Run();
        }