public void ExecuteVbcBuildTaskWithServer() { var vbc = new Vbc(); var srcFile = _tempDirectory.CreateFile(s_helloWorldSrcVb[0].Key).WriteAllText(s_helloWorldSrcVb[0].Value).Path; var exeFile = Path.Combine(_tempDirectory.Path, "hello.exe"); var engine = new MockEngine(); vbc.BuildEngine = engine; vbc.Sources = new[] { new Build.Utilities.TaskItem(srcFile) }; vbc.NoLogo = true; vbc.OutputAssembly = new Build.Utilities.TaskItem(exeFile); vbc.ToolPath = ""; vbc.ToolExe = ""; vbc.UseSharedCompilation = true; vbc.Execute(); Assert.Equal(0, vbc.ExitCode); Assert.Equal(string.Empty, engine.Warnings); Assert.Equal(string.Empty, engine.Errors); Assert.True(File.Exists(exeFile)); var result = ProcessUtilities.Run(exeFile, ""); Assert.Equal(0, result.ExitCode); Assert.Equal("Hello from VB", result.Output.Trim()); }