public async Task Basic_SetIntermediateOutputPathProperty() { var intermediateOutputPath = @"foo\bar\"; nuproj.CreateMockContentFiles(); nuproj.SetGlobalProperty("IntermediateOutputPath", intermediateOutputPath); var result = await MSBuild.ExecuteAsync(nuproj.CreateProjectInstance(), this.logger); result.AssertSuccessfulBuild(); var expectedNuSpecFileName = string.Format(CultureInfo.InvariantCulture, "{0}.nuspec", nuproj.GetPropertyValue("Id")); var nuprojFileName = Path.GetFileNameWithoutExtension(nuproj.FullPath); var expectedNuSpecPath = Path.Combine(intermediateOutputPath, expectedNuSpecFileName); var actualNuSpecPath = await nuproj.GetNuSpecPathAsync(); Assert.Equal(expectedNuSpecPath, actualNuSpecPath, StringComparer.InvariantCultureIgnoreCase); }