Пример #1
0
        private ProjectInstance CreateAndEvaluateProject(Dictionary <string, string> preImportProperties)
        {
            // TODO: consider changing these tests to redirect where the common targets look for ImportBefore assemblies.
            // That would allow us to test the actual ImportBefore behaviour (we're currently creating a project that
            // explicitly imports our SonarQube "ImportBefore" project).
            BuildUtilities.DisableStandardTargetsWildcardImporting(preImportProperties);

            ProjectRootElement projectRoot = CreateImportsBeforeTestProject(preImportProperties);

            // Evaluate the imports
            ProjectInstance projectInstance = new ProjectInstance(projectRoot);

            SavePostEvaluationProject(projectInstance);
            return(projectInstance);
        }