Exception when using MSBuild.ExtensionPack.UI.Dialog

Feb 3, 2011 at 6:07 PM

Hi All,

can anyone help me in understanding the Issue with MSBuild.ExtensionPack.UI.Dialog


I'm using Msbuild.extensionPack.UI.Dialog to show up a UI. Build Requested by User1, TFSService_user is running build on server1(build Server, we have build agent set up too).


tfsbuild.proj file:

<target name="temp">

   <!-- Show some text-->    

<MSBuild.ExtensionPack.UI.Dialog TaskAction="Show" Text="Hello. Press OK to continue…"/>



Build Error log:

Target "temp" in project "f:\b\project_name\Temp Build\BuildType\TFSBuild.proj" (target "AfterDropBuild" depends on it):

Using "MSBuild.ExtensionPack.UI.Dialog" task from assembly "C:\Program Files\MSBuild\ExtensionPack\MSBuild.ExtensionPack.dll".

Task "MSBuild.ExtensionPack.UI.Dialog"f:\b\project_name\Temp Build\BuildType\TFSBuild.proj(384,5):

error : InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

f:\b\project_name\Temp Build\BuildType\TFSBuild.proj(384,5): error : Done executing task "MSBuild.ExtensionPack.UI.Dialog" -- FAILED.

Done building target "temp" in project "TFSBuild.proj" -- FAILED.


I appreciate your help.




Feb 3, 2011 at 6:27 PM

Team build does not run in interactive mode. Generally having to interact with a build is bad practice. If you really need this, you could try running the build in interactive mode. Take a look through this post: http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/2a153896-8b22-404c-b951-5c9ed59a9b3a


Feb 4, 2011 at 1:03 AM
Edited Feb 4, 2011 at 1:47 AM

Thanks Mike. I appreciate your quick response.

I'll try configuring Interactive port on my test server. This is to try out my new task on UI and experience with this package.

any specific reason to consider this as bad practice? are there any concerns related to security.