Can I tell MSBuild where to look for assemblies?

I have UsingTaskone which is a dll .. which refers to some dll that is NOT in the same directory as use-task-dll.

eg.

<UsingTask TaskName="FooAwesome" AssemblyFile="$(SolutionDir)packages\FooAwesome\lib\NET20\FooAwesome.dll" />

Error: FooAwesome.dll requires Foo.Core.dll

And the core exists ...

\Solution
    \packages
        \FooAwesome
        \Foo.Core

So, how can I tell me the msbuild.proj file, although I use FooAwesome.. I know what he needs Foo.Coreand he can find this dll ... ~ here ~.

Possible?

+3
source share
1 answer

To do this, you will need to modify the MsBuild sensing behavior. As far as I know, along the way. I think your best options are as follows.

  • Use ILMerge to keep the task in one assembly
  • + GAC ,

# 1

+1

All Articles