Log.LogMessage appears quickly in VS2013 output window

I have the following C # code in a custom MSBuild task:

 Log.LogMessage(MessageImportance.High, string.Format("Downloading ROOT v{0}", Version));
 // Do the download
 WebClient webClient = new WebClient();
 webClient.DownloadFile(url, filePath);

      

DownloadFile

can really take a long time. Long enough that if someone doesn't know what's going on, they might be tempted to kill the assembly. Hence the log message I will give in the line earlier.

When running my build using MSBUILD, this works as expected. The console displays "Loading ROOT v5.34.20" and then pauses for a few minutes while loading.

However, when run in VS2013, the output window remains blank until the build completes. Then the correct log lines appear (in the correct order). It looks like the MSBUILD output is buffered before being sent to the VS2013 output window.

Is there a way to change this behavior? I would like to create a flash so the user knows why their build seems to be paused ...

+3
c # visual-studio visual-studio-2013 msbuild


source to share


No one has answered this question yet

See similar questions:

6
MSBuild custom task: how to clear logging in VS2012 output window while task is running?

or similar:

558
Writing to the Visual Studio Output Window
166
Displaying build time in Visual Studio?
13
How can I use the MSBuild copy task to copy to multiple target folders?
nine
Delay before Visual Studio starts building
nine
How do I preserve colors from msbuild output?
8
Visual Studio 2013 error list not showing errors in failed builds
3
.NET project with project.json cannot be built
1
How to build a VS 2015 solution with projects that import targets and props from nuget packages using msbuild 14?
1
CodeAnalysis using msbuild does not break on warning / error
0
MSBuild does not copy compiled binaries to <app> \ Bin



All Articles
Loading...
X
Show
Funny
Dev
Pics