MSBee and building projects with NUnit Tests

Topics: For MSBee Users
Aug 16, 2006 at 9:39 PM
migrated from power toy forums
originally posted by Andy McG
------------------------------------------------------

Hi there,

I am looking for some help/advice with a problem we I have encountered.

I am currently writting som MSBuild scripts that use MSBee to build FX_1.1 assemblies. When I build a small solution that has 2 projects, one of which is the Nunit Tests for the other one I encounter an issue with the ResolveAssemblyReferences target which subsequently casues the build to fail.

It appears that the reference to the Nunit Framework is not resolved.

If I build FX_2.0 asemblies the reference is resolved.

The project file has the following in it:

<ItemGroup>
<Reference Include="nunit.framework, Version=2.2.7.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>

Which all looks OK to me, the Framework Verions of the Nunit assemply is v1.1.4322
Aug 16, 2006 at 9:39 PM
originally posted by Craig Lichtenstein - MSFT
------------------------------------------------------

Providing a <HintPath> to the reference should solve the problem.
Aug 16, 2006 at 9:39 PM
originally posted by Andy McG
------------------------------------------------------

Hi Craig,
I will give that a go, I managed to copy the asembly that is refrenced into one of the directories scanned during the dependancy checking process and that worked, but the <Hint Path> wil be a more satisfactory solution.

Thanks for your help.