Help with buildfile compiling a C#-library containing references to libraries in a sub-directory
"Heintz, Aleksander" <[email protected]> Mon, 20 Jun 2011 21:13:13 +0200
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
I'm having trouble by trying to write a buildfile that can compile and test
my application. The compilation works great, however, I get a runtime-error
during the testing saying that .NET is unable to load the assembly I
included. Now, my folder-structure looks something like this:
/project.build
/lib
/ShouldFluent
/Should.Fluent.dll
/src
/sources...
When I build I first copy everything from /lib to /build/lib and then I
build to /build adding the references from
/build/lib/ShouldFluent/Should.Fluent.dll - however, the app still can't
find the Should.Fluent.dll at runtime.
This is the build-configuration:
<csc target="library" ....>
<sources>
<include name="**/*.cs" />
<!-- common assembly-level attributes -->
<include name="../../src/CommonAssemblyInfo.cs" />
<exclude name="Properties/AssemblyInfo.cs" />
</sources>
<references>
<include name="${build.dir}/lib/ShouldFluent/Should.Fluent.dll" />
</references>
</csc>
Can anyone tell me how I can get this build-configuration to work?
--
/Alxandr
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users