예제 #1
0
        protected override IEnumerable <string> GetSolutionCompletionResults(InvokeMSBuildParameters parameters)
        {
            try
            {
                var tempProjectFile      = SolutionHelper.CreateTempMetaproj(parameters);
                var temProjectParameters = new InvokeMSBuildParameters
                {
                    DetailedSummary    = parameters.DetailedSummary,
                    MaxCpuCount        = parameters.MaxCpuCount,
                    NodeReuse          = parameters.NodeReuse,
                    Project            = tempProjectFile,
                    Properties         = parameters.Properties,
                    Target             = parameters.Target,
                    ToolsVersion       = parameters.ToolsVersion,
                    Verbosity          = parameters.Verbosity,
                    WarningsAsErrors   = parameters.WarningsAsErrors,
                    WarningsAsMessages = parameters.WarningsAsMessages,
                };

                return(GetProjectCompletionResults(temProjectParameters));
            }
            catch
            {
                return(Enumerable.Empty <string>());
            }
        }
        private void PreprocessSolution(string projectFile, IDictionary <string, string> globalProperties, string toolsVersion, string outputFile)
        {
            var tempProjectFile = SolutionHelper.CreateTempMetaproj(projectFile, globalProperties, toolsVersion);

            PreprocessProject(tempProjectFile, globalProperties, toolsVersion, outputFile);
        }