Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Linking to a specific version of NUnit is failing at compile time

$
0
0

On my Mac, Xamarin Studio lists two possible references for the NUnit DLLs. For instance, the mono.framework package is available as 2.4.8.0 and 2.6.0.12051, the latter of which is rather confusingly described as "nunit 2.4 (Provided by Xamarin Studio)". If I pick this one, the CSPROJ file correctly captures that I want a specific version:

<Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">

...and I can even browse to this library in the IDE, inspect the method signatures, etc... However, at build time the compiler fails to find the DLL, presumably because it isn't on any of the search paths.

The correct DLL lives here: /Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit

...but I don't see that path (or a likely alias) listed in the various places the compiler is looking:

    Target ResolveAssemblyReferences:
/Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' not resolved
        For searchpath {CandidateAssemblyFiles}
        Warning: {CandidateAssemblyFiles} not supported currently
        For searchpath {HintPathFromItem}
        HintPath attribute not found
        For searchpath {TargetFrameworkDirectory}
        Considered target framework dir /Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.5, assembly name 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' did not match the expected 'nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' (SpecificVersion=True)
        Considered target framework dir /Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.5/Facades/, assembly named 'nunit.framework' not found.
        For searchpath {PkgConfig}
        Considered nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, but could not find in any pkg-config files.
        For searchpath {GAC}
        Considered 'nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77', but an assembly with the specific version not found.
        For searchpath {RawFileName}
        For searchpath bin/Debug/   

How is the compiler supposed to know where to find these add-in DLLs and why might that be failing for my installation?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>