Bug 28083 - When running an NUnit project, XS always asks "An application is already running and will have to be stopped. Do you want to continue?"
Summary: When running an NUnit project, XS always asks "An application is already runn...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 5.9
Hardware: PC Mac OS
: Normal normal
Target Milestone: 5.9
Assignee: Matt Ward
Depends on:
Reported: 2015-03-16 17:00 UTC by Jeffrey Stedfast
Modified: 2015-05-06 00:51 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jeffrey Stedfast 2015-03-16 17:00:49 UTC
In ProjectOperations.ConfirmExecutionOperation(), the currentRunOperation is a NullProgressMonitor who's IsCompleted value is false even though the project has not been run before.

To reproduce:

1. Create a new NUnit project
2. Hit Debug (which will cause it to Build and then run)

Dialog pops up saying the program is already running and asks if I want to stop it.
Comment 1 Prashant manu 2015-03-18 02:19:25 UTC
Checked and we are also getting Pop up with same message on running Nunit project.
Screencast: http://www.screencast.com/t/g75yni77

Supplement Info:
IDE Log: https://gist.github.com/saurabh360/d5488cd6706913eebc4c

Environment Info:
Xamarin Studio
Version 5.9 (build 245)
Build Information
Release ID: 509000245
Git revision: e249c35434b118ed16bae67d35f756b3119bef4b
Build date: 2015-03-17 15:49:56-04
Xamarin addins: a2b515f29d591552e7c5f978c03d9c75efc820aa
Comment 2 Matt Ward 2015-03-26 07:25:46 UTC
I have fixed this on a separate branch and opened a pull request for the change to be added to the master branch. Probably worth someone who knows the NUnit addin better than me to review this change.

Comment 3 xamarin-release-manager 2015-03-31 08:01:46 UTC
Fixed in version (monodevelop-5.9-branch)
Comment 4 Prashant manu 2015-05-06 00:51:28 UTC
We have checked and now running an NUnit project no pop up appears.
Screencast: http://www.screencast.com/t/Rj2PmEho

Environment Info:
Xamarin Studio
Version 5.9 (build 464)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
	Mono 4.0.1 ((detached/5a0b19f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010024

Apple Developer Tools
Xcode 6.3.1 (7703)
Build 6D1002

Version: (Enterprise Edition)
Hash: 1b48440
Branch: master
Build date: 2015-05-04 17:01:32-0400

Version: (Enterprise Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Xamarin Android Player
Version: Unknown version
Location: /Applications/Xamarin Android Player.app

Version: (Enterprise Edition)

Build Information
Release ID: 509000464
Git revision: 97f3c43266a4abe2dff0a31b1afb976de897d099
Build date: 2015-05-04 10:06:54-04
Xamarin addins: 438f3e4b8352e006958552de07c6f54770c9233c

Operating System
Mac OS X 10.10.2
Darwin Admin-Macs-Mac-mini.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Nov 13 18:36:56 PST 2014
    root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64