We’re having a problem on our TFS 2017 build environment where VisualGDB won’t run when it is invoked as part of an official build through TFS. I can run the build manually on the build machine by calling “msbuild myproject.proj” from a developer console. But it will not run through TFS.
Here’s the error message.
12>ExecutePrebuildActions:
System.InvalidOperationException
System.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.
at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
at ft1.n(String a, Object[] b)
at n61.f_2(m5 a)
at b2..ctor(VisualGDBProjectSettings2 b, pa1 c, d1 a)
at VisualGDB.MSBuild.BuildHelper..ctor(String vgdbSettingsFile)
at Sysprogs.build.tasks.shared.LaunchVisualGDB.Execute()
12>C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\external.targets(5,3): error : 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.