NUnit assembly is not picked up by monodevelop

Bug #985294 reported by Stefan Tauner
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

nothing NUnit-related does show up in the references dialog although i have everything remotely related installed.
if i add the assembly by hand it works correctly.
the nunit addin works correctly afaik (i.e. the window is there and i can launch test runs).

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: monodevelop-nunit 2.8.6.3+dfsg-2
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu2
Architecture: amd64
Date: Thu Apr 19 00:58:39 2012
PackageArchitecture: all
SourcePackage: monodevelop
UpgradeStatus: Upgraded to precise on 2012-03-25 (24 days ago)

Revision history for this message
Stefan Tauner (stefanct) wrote :
Revision history for this message
Julian Taylor (jtaylor) wrote :

are you sure you have libnunit-cil-dev installed?

Julian Taylor (jtaylor)
Changed in monodevelop (Ubuntu):
status: New → Incomplete
Revision history for this message
Stefan Tauner (stefanct) wrote :

yes:

dpkg -l *nunit*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============================================================-==============================================================-============================================================================================================================================
un libmono-nunit2.2-cil <none> (no description available)
un libmono-nunit2.4-cil <none> (no description available)
un libnunit-cil <none> (no description available)
ii libnunit-cil-dev 2.5.10.11092+dfsg-3 Unit test framework for CLI
ii libnunit-doc 2.5.10.11092+dfsg-3 Unit test framework for CLI
un libnunit2.2.6-cil <none> (no description available)
un libnunit2.4-cil <none> (no description available)
ii libnunit2.5-cil 2.5.10.11092+dfsg-3 Unit test framework for CLI
ii monodevelop-nunit 2.8.6.3+dfsg-2 NUnit plugin for MonoDevelop
ii monodoc-nunit-manual 2.5.10.11092+dfsg-3 compiled XML documentation for NUnit
ii nunit 2.5.10.11092+dfsg-3 Unit test framework for CLI
ii nunit-console 2.5.10.11092+dfsg-3 Unit test framework for CLI
ii nunit-gui 2.5.10.11092+dfsg-3 Unit test framework for CLI

Changed in monodevelop (Ubuntu):
status: Incomplete → New
Revision history for this message
Julian Taylor (jtaylor) wrote :

can you remove the old nunit 2.4 and 2.2 package and see if it fixes the issue?

Revision history for this message
Julian Taylor (jtaylor) wrote :

sorry read the output wrong they where removed, you could try purging them, though I don't think that will help.

I can't reproduce the issue on my machine.

Revision history for this message
Stefan Tauner (stefanct) wrote :

afaik un (unknown, no errors) indicates that they were purged.
unpurged packages (i.e. those with left over config files) are rc (remove(d)/conf-files).

nevertheless i have purged them with aptitude to no avail. how does monodevelop determine the available references? is there another similar package that does provide assemblies? i could test if the basic mechanism works with that then...

do you notice any differences between your test machine and mine?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in monodevelop (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Taylor (jtaylor) wrote :

to my knowledge monodevelop uses pkg-config to find references.

for nunit two equal ones are provided one from libmono-cil-dev and one from libnunit-cil-dev (one of them should probably be removed, though that does not cause the issue, only duplicate display):
libmono-cil-dev: /usr/lib/pkgconfig/mono-nunit.pc
libnunit-cil-dev: /usr/lib/pkgconfig/nunit.pc

Revision history for this message
Daniel Wischolel (other-wischolek) wrote :

I had exactly the same problem until I found this thread:

http://ubuntuforums.org/showthread.php?t=1939485

It appears NUnit is not displayed in projects targetting .NET 2.0. Changing the target framework to .NET 4.0 made NUnit available for me again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.