void UpdateCompilationOptions(CSharpCompilationAndParseOptions options)
 {
     foreach (var config in Configurations.OfType <DotNetProjectConfiguration> ())
     {
         var parameters = new DnxConfigurationParameters(options.CompilationOptions, options.ParseOptions);
         config.CompilationParameters = parameters;
     }
 }
        public void UpdateCompilationOptions(
            OmniSharp.Dnx.FrameworkProject frameworkProject,
            CSharpCompilationOptions compilationOptions,
            CSharpParseOptions parseOptions)
        {
            EnsureCurrentFrameworkDefined(frameworkProject);

            var options = new CSharpCompilationAndParseOptions(compilationOptions, parseOptions);

            savedCompilationOptions[frameworkProject.Framework] = options;

            if (CurrentFramework != frameworkProject.Framework)
            {
                return;
            }

            UpdateCompilationOptions(options);

            // Force the type system to reload the project otherwise any
            // warnings that are suppressed are still shown in the text editor.
            Project.NotifyModified("References");
        }