private void StudentsZipIsBuildingOk(Slide slide, ProjectExerciseBlock ex) { var tempDir = new DirectoryInfo("./temp"); try { Utils.UnpackZip(ex.StudentsZip.Content(), "./temp"); var res = MsBuildRunner.BuildProject(settings.MsBuildSettings, tempDir.GetFile(ex.CsprojFileName).FullName, tempDir); if (!res.Success) ReportSlideError(slide, ex.CsprojFileName + " not building! " + res); } finally { tempDir.Delete(true); } }
public static void PrepareForChecking(Project proj, ProjectExerciseBlock exerciseBlock, IReadOnlyList<string> excludedPaths) { PrepareForChecking(proj, exerciseBlock.StartupObject, excludedPaths); }